diff --git a/public/images/ladill-icons/file.svg b/public/images/ladill-icons/file.svg index b8dc69b..a2bf8c0 100644 --- a/public/images/ladill-icons/file.svg +++ b/public/images/ladill-icons/file.svg @@ -1,11 +1,4 @@ - - - - - - - - - + + diff --git a/public/images/ladill-icons/folder.svg b/public/images/ladill-icons/folder.svg index cca1317..f926e01 100644 --- a/public/images/ladill-icons/folder.svg +++ b/public/images/ladill-icons/folder.svg @@ -1,6 +1,6 @@ - + diff --git a/resources/views/layouts/user.blade.php b/resources/views/layouts/user.blade.php index 5521374..1a81c16 100644 --- a/resources/views/layouts/user.blade.php +++ b/resources/views/layouts/user.blade.php @@ -257,15 +257,6 @@ document.addEventListener('alpine:init', () => { }, })); }); - -// Global "/" shortcut to focus search -document.addEventListener('keydown', (e) => { - if (e.key === '/' && !['INPUT','TEXTAREA','SELECT'].includes(document.activeElement.tagName) && !document.activeElement.isContentEditable) { - e.preventDefault(); - const input = document.querySelector('[x-data*="topbarSearch"] input'); - if (input) input.focus(); - } -}); @include('partials.afia') @include('partials.sso-keepalive') diff --git a/resources/views/partials/mobile-bottom-nav.blade.php b/resources/views/partials/mobile-bottom-nav.blade.php index 98d9b82..69cda93 100644 --- a/resources/views/partials/mobile-bottom-nav.blade.php +++ b/resources/views/partials/mobile-bottom-nav.blade.php @@ -11,6 +11,7 @@ if ($profileMenuItems === [] && $profileUrl !== '#') { $profileMenuItems = [['type' => 'link', 'label' => 'Profile', 'href' => $profileUrl]]; } + $searchLabel = $searchLabel ?? 'Search'; $navActive = fn (bool $active) => $active ? 'text-indigo-600' : 'text-slate-600'; @endphp
@@ -26,7 +27,7 @@ - Search + {{ $searchLabel }} @if (!empty($centerCompose)) diff --git a/resources/views/partials/topbar-qr.blade.php b/resources/views/partials/topbar-qr.blade.php index f7febc1..5ef80f7 100644 --- a/resources/views/partials/topbar-qr.blade.php +++ b/resources/views/partials/topbar-qr.blade.php @@ -13,58 +13,6 @@ @include('partials.mobile-topbar-title') - {{-- Search --}} -
diff --git a/resources/views/transfer/files/index.blade.php b/resources/views/transfer/files/index.blade.php index dd2e3e8..7c62cac 100644 --- a/resources/views/transfer/files/index.blade.php +++ b/resources/views/transfer/files/index.blade.php @@ -166,7 +166,7 @@ - + @include('transfer.files.partials.folder-list-icon', ['size' => 'xs'])

{{ $folder->title }}

{{ $folder->files_count }} item{{ $folder->files_count === 1 ? '' : 's' }}

@@ -185,7 +185,7 @@
- + @include('transfer.files.partials.file-list-icon', ['size' => 'xs'])

{{ $file->original_name }}

@@ -198,7 +198,10 @@ {{ $file->humanSize() }} @if($file->transfer->recipient_email || $file->downloads_total > 0) - Shared + + + Shared + @else Private @endif diff --git a/resources/views/transfer/files/partials/file-list-icon.blade.php b/resources/views/transfer/files/partials/file-list-icon.blade.php new file mode 100644 index 0000000..ca2719f --- /dev/null +++ b/resources/views/transfer/files/partials/file-list-icon.blade.php @@ -0,0 +1,17 @@ +@php + $size = $size ?? 'sm'; + $classes = match ($size) { + 'xs' => 'h-7 w-7 rounded-md', + default => 'h-8 w-8 rounded-lg', + }; + $iconClasses = match ($size) { + 'xs' => 'h-3.5 w-3.5', + default => 'h-4 w-4', + }; +@endphp + + + diff --git a/resources/views/transfer/files/partials/folder-list-icon.blade.php b/resources/views/transfer/files/partials/folder-list-icon.blade.php new file mode 100644 index 0000000..04affad --- /dev/null +++ b/resources/views/transfer/files/partials/folder-list-icon.blade.php @@ -0,0 +1,17 @@ +@php + $size = $size ?? 'sm'; + $classes = match ($size) { + 'xs' => 'h-7 w-7 rounded-md', + default => 'h-8 w-8 rounded-lg', + }; + $iconClasses = match ($size) { + 'xs' => 'h-3.5 w-3.5', + default => 'h-4 w-4', + }; +@endphp + + + diff --git a/resources/views/transfer/transfers/index.blade.php b/resources/views/transfer/transfers/index.blade.php index ac20f3e..768861f 100644 --- a/resources/views/transfer/transfers/index.blade.php +++ b/resources/views/transfer/transfers/index.blade.php @@ -1,6 +1,6 @@ Transfers -
+
-
-
- - -
- - - - @if($search !== '' || $status !== 'all' || $sort !== 'newest') - Clear - @endif -
- - @if($transfers->isEmpty()) -
-

- @if($search !== '' || $status !== 'all') - No transfers match your filters. - @else - No transfers yet. +

+
+
+
+ + +
+ + + @if($search !== '' || $status !== 'all' || $sort !== 'newest') + Clear @endif -

- Create your first transfer +
- @else -
-
+ + @if($transfers->isEmpty()) +
+

+ @if($search !== '' || $status !== 'all') + No transfers match your filters. + @else + No transfers yet. + @endif +

+ Create your first transfer +
+ @else +
{{ $transfers->total() }} transfer{{ $transfers->total() === 1 ? '' : 's' }} Showing {{ $transfers->firstItem() }}–{{ $transfers->lastItem() }}
- - - - - - + + + + + + @@ -71,29 +72,32 @@ }; @endphp - - - - - - + + + @endforeach
TitleStatusFilesDownloadsExpiresTitleStatus
+

{{ $transfer->title }}

{{ $transfer->created_at->format('M j, Y') }}

@if($transfer->recipient_email)

To {{ $transfer->recipient_email }}

@endif
+ {{ $transfer->billingStatusLabel() }} {{ $transfer->files->count() }}{{ number_format($transfer->downloads_total) }}{{ $transfer->expires_at?->format('M j, Y') ?? '—' }} + Open
-
+ @endif +
+ + @if($transfers->hasPages())
{{ $transfers->links() }}
@endif