Skip to content

Commit

Permalink
#187: Responsiveness increased
Browse files Browse the repository at this point in the history
  • Loading branch information
alimranahmed committed Sep 15, 2024
1 parent 7a06f78 commit 923b7f8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/backend/table.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div {{$attributes->merge(['class' => 'mt-8 flow-root'])}}>
<div class="-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8">
<div class="inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8">
<div class="overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg">
<div class="overflow-hidden shadow ring-1 ring-black ring-opacity-5 rounded-lg">
<table class="min-w-full divide-y divide-gray-300">
<thead class="bg-gray-50">
{{$head}}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/layouts/backend.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<x-backend.navbar/>

<div class="sm:px-6 lg:px-8 py-3">
<div class="max-w-7xl mx-auto px-6 lg:px-8 py-3">
{{$slot}}
</div>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/backend/article/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<form class="mt-3">
<x-backend.form.input name="query" wire:model.live="query" placeholder="Search article" autofocus/>
<select name="category" wire:model.live.change="category" aria-label="Category"
class="p-1 border border-indigo-300 rounded focus:outline-none focus:border-indigo-500">
class="p-1 border border-indigo-300 rounded focus:outline-none focus:border-indigo-500 mt-3 sm:mt-0">
<option value="">All categories</option>
@foreach($navCategories as $category)
<option value="{{$category->id}}" {{request('category') == $category->id ? 'selected' : ''}}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<tr>
<x-backend.table.td :wrap="true">
<section>
<a href="{{route('get-article', $comment->article->id)}}" target="_blank" class="hover:underline font-semibold text-slate-700">
<a href="{{route('get-article', $comment->article->slug)}}" target="_blank" class="hover:underline font-semibold text-slate-700">
{{mb_substr($comment->article->heading, 0, 70)}}
{{mb_strlen($comment->article->heading) > 70 ? '...' : '' }}<br>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<input id="{{$file_name}}" type="file" wire:model="{{$file_name}}" class="sr-only"/>
<span class="text-slate-900 rounded px-2 leading-6 text-sm bg-indigo-300 hover:bg-indigo-400 py-1"
wire:target="{{$file_name}}"
wire:loading.attr="disabled"
wire:loading.class="cursor-wait animate-pulse"
>Change</span>
</label>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/backend/feedback/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>
<section class="grid grid-cols-3 gap-3">
<section class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-3">
@foreach($feedbacks as $feedback)
<div class="border border-indigo-300 rounded px-3 py-1">
<div class="flex justify-between">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/backend/keyword/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>
<section class="grid grid-cols-5 gap-3">
<section class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-3">
@foreach($keywords as $keyword)
<div class="rounded border border-indigo-300 pl-2">
<div class="flex justify-between">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>
<div class="grid grid-cols-4 gap-3">
<div class="grid grid-cols-1 sm:grid-cols-3 md:grid-cols-4 gap-3">
@foreach($subscribers as $subscriber)
<div class="rounded border border-indigo-300 pl-2">

Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/placeholders/cards.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="animate-pulse">
<section class="grid grid-cols-5 gap-3">
<section class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-3">
@for($i = 1; $i <= 15; $i++)
<div class="rounded border border-slate-300 pl-2">
<div class="flex justify-between">
Expand Down

0 comments on commit 923b7f8

Please sign in to comment.