From cfd377e29c0fa6f10c4d6bf3f507de4ca2f0b10a Mon Sep 17 00:00:00 2001 From: FifthWit Date: Thu, 14 Aug 2025 15:44:50 -0500 Subject: Mobile Design looking decent --- frontend/src/pages/Maplist.tsx | 271 ++++++++++++++++++++--------------------- 1 file changed, 135 insertions(+), 136 deletions(-) (limited to 'frontend/src/pages/Maplist.tsx') diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx index 8343129..2f0491e 100644 --- a/frontend/src/pages/Maplist.tsx +++ b/frontend/src/pages/Maplist.tsx @@ -87,161 +87,160 @@ const Maplist: React.FC = () => { }, [gameChapters, location.search]); return ( -
+
- LPHUB | Maplist + LPHUB | Maplist
- - - + + +
{load ? ( -
+
) : ( -
-

- {game?.name} -

+
+

+ {game?.name} +

+ +
+
+
+

+ { + game?.category_portals.find( + obj => obj.category.id === catNum + 1 + )?.portal_count + } +

+

+ portals +

+
+ +
+ {game?.category_portals.map((cat, index) => ( + + ))} +
+
+
+
+
+
+ + {curChapter?.chapter.name.split(" - ")[0]} + +
+
+ + {curChapter?.chapter.name.split(" - ")[1]} + + +
+ \
-
-
-

- { - game?.category_portals.find( - obj => obj.category.id === catNum + 1 - )?.portal_count - } -

-

- portals -

-
- -
- {game?.category_portals.map((cat, index) => ( - - ))} -
+ {gameChapters?.chapters.map((chapter, i) => { + return ( +
{ + _fetch_chapters(chapter.id.toString()); + _handle_dropdown_click(); + }} + > + {chapter.name}
+ ); + })}
+
-
-
-
- - {curChapter?.chapter.name.split(" - ")[0]} - -
-
+ {curChapter?.maps.map((map, i) => { + return ( +
+ + + {map.name} + +
- - {curChapter?.chapter.name.split(" - ")[1]} +
+ + {map.is_disabled + ? map.category_portals[0].portal_count + : map.category_portals.find( + obj => obj.category.id === catNum + 1 + )?.portal_count} + + + portals -
- \ -
- {gameChapters?.chapters.map((chapter, i) => { - return ( -
{ - _fetch_chapters(chapter.id.toString()); - _handle_dropdown_click(); - }} - > - {chapter.name} -
- ); - })}
-
- -
- {curChapter?.maps.map((map, i) => { - return ( -
- - - {map.name} - -
-
- - {map.is_disabled - ? map.category_portals[0].portal_count - : map.category_portals.find( - obj => obj.category.id === catNum + 1 - )?.portal_count} - - - portals - -
-
- - {/* Difficulty rating */} -
-
- {[1, 2, 3, 4, 5].map((point) => ( -
- ))} -
-
- -
- ); - })} -
-
+ +
+
+ {[1, 2, 3, 4, 5].map((point) => ( +
+ ))} +
+
+ +
+ ); + })}
+ +
)}
); -- cgit v1.2.3