diff options
| author | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-12-11 09:41:13 +0100 |
|---|---|---|
| committer | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-12-11 09:41:13 +0100 |
| commit | d19aebd898af77dbc65fabfc4fe905f72769ccc7 (patch) | |
| tree | 28121000fd821b01d8662f238ea2d0a6e10ec1b5 /frontend/src/pages/Maplist.tsx | |
| parent | fix/frontent: fix category parameter not working (diff) | |
| download | lphub-d19aebd898af77dbc65fabfc4fe905f72769ccc7.tar.gz lphub-d19aebd898af77dbc65fabfc4fe905f72769ccc7.tar.bz2 lphub-d19aebd898af77dbc65fabfc4fe905f72769ccc7.zip | |
fix/frontend: games page css rehaul, small maplist fixes
Diffstat (limited to '')
| -rw-r--r-- | frontend/src/pages/Maplist.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx index 7b4ce06..ecea3e1 100644 --- a/frontend/src/pages/Maplist.tsx +++ b/frontend/src/pages/Maplist.tsx | |||
| @@ -123,7 +123,9 @@ const Maplist: React.FC = () => { | |||
| 123 | )?.portal_count | 123 | )?.portal_count |
| 124 | } | 124 | } |
| 125 | </h2> | 125 | </h2> |
| 126 | <h3>portals</h3> | 126 | <h3>{game?.category_portals.find( |
| 127 | (obj) => obj.category.id === catNum + 1)!.portal_count == 1 ? "portal" : "portals" | ||
| 128 | }</h3> | ||
| 127 | </div> | 129 | </div> |
| 128 | <div className="game-header-categories"> | 130 | <div className="game-header-categories"> |
| 129 | {game?.category_portals.map((cat, index) => ( | 131 | {game?.category_portals.map((cat, index) => ( |
| @@ -162,7 +164,7 @@ const Maplist: React.FC = () => { | |||
| 162 | <span>{map.is_disabled ? map.category_portals[0].portal_count : map.category_portals.find( | 164 | <span>{map.is_disabled ? map.category_portals[0].portal_count : map.category_portals.find( |
| 163 | (obj) => obj.category.id === catNum + 1 | 165 | (obj) => obj.category.id === catNum + 1 |
| 164 | )?.portal_count}</span> | 166 | )?.portal_count}</span> |
| 165 | <span>portals</span> | 167 | <span>{map.category_portals.find((obj) => obj.category.id === catNum + 1)?.portal_count == 1 ? "portal" : "portals"}</span> |
| 166 | </div> | 168 | </div> |
| 167 | </div> | 169 | </div> |
| 168 | <div className="difficulty-bar"> | 170 | <div className="difficulty-bar"> |