From a33171fb207959e61da91c32d79e583d71813ea1 Mon Sep 17 00:00:00 2001 From: nyne Date: Fri, 5 Sep 2025 14:55:27 +0800 Subject: [PATCH] improve layout --- frontend/src/index.css | 4 ++++ frontend/src/pages/resource_details_page.tsx | 13 +++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index 423dc77..8fa4a34 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -1,6 +1,10 @@ @import "tailwindcss"; @plugin "daisyui"; +@theme { + --breakpoint-xs: 30rem; +} + /* Pink Theme */ @plugin "daisyui/theme" { name: "pink"; diff --git a/frontend/src/pages/resource_details_page.tsx b/frontend/src/pages/resource_details_page.tsx index 66f5134..5b42095 100644 --- a/frontend/src/pages/resource_details_page.tsx +++ b/frontend/src/pages/resource_details_page.tsx @@ -694,8 +694,8 @@ function FileTile({ file }: { file: RFile }) { const navigate = useNavigate(); return ( -
-
+
+

{file.filename}

@@ -727,7 +727,7 @@ function FileTile({ file }: { file: RFile }) { {file.is_redirect ? t("Redirect") : fileSizeToString(file.size)} { - file.hash && + file.hash && @@ -736,7 +736,7 @@ function FileTile({ file }: { file: RFile }) {

-
+ +
+ +
); }