From e6df9846464f70b27f7f54ed6376abfe646bba91 Mon Sep 17 00:00:00 2001 From: Richard R Date: Sat, 30 May 2026 17:59:16 -0600 Subject: [PATCH] fix(ui): improve mobile layout and spacing for document list and gallery views - Adjust GalleryView container structure and paddings for better mobile scrolling - Refine document preview and details sizing for smaller screens - Update ListView grid columns and icon sizing for improved mobile fit - Ensure icons do not shrink and maintain alignment on all devices These changes enhance usability and visual consistency of document views on mobile devices. --- src/components/doclist/views/GalleryView.tsx | 8 +++++--- src/components/doclist/views/ListView.tsx | 10 +++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/doclist/views/GalleryView.tsx b/src/components/doclist/views/GalleryView.tsx index eb8fd7b..862f523 100644 --- a/src/components/doclist/views/GalleryView.tsx +++ b/src/components/doclist/views/GalleryView.tsx @@ -174,10 +174,11 @@ export function GalleryView({ return (
-
+
+
{activeDoc ? (
-
+
@@ -206,7 +207,7 @@ export function GalleryView({
-
+
Type
{activeDoc.type}
Size
@@ -234,6 +235,7 @@ export function GalleryView({ ) : (

No documents to show

)} +
diff --git a/src/components/doclist/views/ListView.tsx b/src/components/doclist/views/ListView.tsx index e73f3ab..676b157 100644 --- a/src/components/doclist/views/ListView.tsx +++ b/src/components/doclist/views/ListView.tsx @@ -29,9 +29,9 @@ function formatDate(ms: number): string { } function KindIcon({ doc }: { doc: DocumentListDocument }) { - if (doc.type === 'pdf') return ; - if (doc.type === 'epub') return ; - return ; + if (doc.type === 'pdf') return ; + if (doc.type === 'epub') return ; + return ; } function HeaderCell({ @@ -131,7 +131,7 @@ function DocRow({ data-doc-tile aria-selected={isSelected} className={ - 'grid grid-cols-[minmax(0,1fr)_72px_88px_120px_28px] sm:grid-cols-[minmax(0,1fr)_88px_96px_140px_32px] items-center text-[12px] border-b border-offbase transition-colors duration-200 ease-out ' + + 'grid grid-cols-[minmax(0,1fr)_44px_72px_104px_28px] sm:grid-cols-[minmax(0,1fr)_56px_96px_140px_32px] items-center text-[12px] border-b border-offbase transition-colors duration-200 ease-out ' + (isSelected ? 'bg-offbase text-accent' : 'text-foreground hover:bg-offbase') + @@ -198,7 +198,7 @@ export function ListView({ return (
-
+