From 2499962815a18936fe66fbd3cc8e1508d23852da Mon Sep 17 00:00:00 2001 From: nyne Date: Sat, 1 Nov 2025 17:28:24 +0800 Subject: [PATCH] improve gallery --- frontend/src/pages/resource_details_page.tsx | 108 ++++++++++--------- 1 file changed, 56 insertions(+), 52 deletions(-) diff --git a/frontend/src/pages/resource_details_page.tsx b/frontend/src/pages/resource_details_page.tsx index 7e778de..e30f14c 100644 --- a/frontend/src/pages/resource_details_page.tsx +++ b/frontend/src/pages/resource_details_page.tsx @@ -25,7 +25,8 @@ import Markdown from "react-markdown"; import "../markdown.css"; import Loading from "../components/loading.tsx"; import { - MdAdd, MdOutlineAccessTime, + MdAdd, + MdOutlineAccessTime, MdOutlineAdd, MdOutlineArchive, MdOutlineArticle, @@ -196,38 +197,64 @@ export default function ResourcePage() {

{resource.title}

- {resource.alternativeTitles.map((e, i) => { - return ( -

{ + return ( +

+ {e} +

+ ); + })} + + +
+ {resource.links && + resource.links.map((l) => { + return ( + + + {l.url.includes("steampowered.com") ? ( + + ) : ( + + )} + {l.label} + + + ); + })} + +
-
+
@@ -236,29 +263,6 @@ export default function ResourcePage() {
-
- {resource.links && - resource.links.map((l) => { - return ( - - - {l.url.includes("steampowered.com") ? ( - - ) : ( - - )} - {l.label} - - - ); - })} - -
-