From 05777ddb7fd174d8686cf15bc26904f933614ca4 Mon Sep 17 00:00:00 2001 From: nyne Date: Wed, 12 Nov 2025 21:51:58 +0800 Subject: [PATCH] improve UI --- frontend/src/pages/about_page.tsx | 6 ++-- frontend/src/pages/resource_details_page.tsx | 30 ++++++++++++++++++-- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/about_page.tsx b/frontend/src/pages/about_page.tsx index 81250a9..6a8fdc0 100644 --- a/frontend/src/pages/about_page.tsx +++ b/frontend/src/pages/about_page.tsx @@ -26,13 +26,13 @@ export default function AboutPage() { return ( -
{img}
-
+
{img}
+
{second}
diff --git a/frontend/src/pages/resource_details_page.tsx b/frontend/src/pages/resource_details_page.tsx index d88bb1f..d10ec73 100644 --- a/frontend/src/pages/resource_details_page.tsx +++ b/frontend/src/pages/resource_details_page.tsx @@ -1926,6 +1926,27 @@ function Gallery({ images, nsfw }: { images: number[], nsfw: number[] }) { } return ( + <> + { + const dialog = document.getElementById("fullscreen_image_dialog") as HTMLDialogElement; + dialog.close(); + }} + className="modal" + > +
+ +
+
setIsHovered(false)} > {/* 图片区域 */} -
+
{ + const dialog = document.getElementById("fullscreen_image_dialog") as HTMLDialogElement; + dialog.showModal(); + }}> {width > 0 && ( )}
+ ); } @@ -2021,8 +2046,9 @@ function GalleryImage({src, nfsw}: {src: string, nfsw: boolean}) { /> {!show && ( <> -
{ +
{ setShow(true) + event.stopPropagation(); }} />