From 125b43be4af25d74341854e3a72d5039eaff8452 Mon Sep 17 00:00:00 2001 From: Spythere Date: Thu, 16 Apr 2026 02:49:38 +0200 Subject: [PATCH] chore(scenery): added grid layout to scenery top list; expanded to 40 items --- src/components/SceneryView/SceneryTopList.vue | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/src/components/SceneryView/SceneryTopList.vue b/src/components/SceneryView/SceneryTopList.vue index 97de9e1..36a88d3 100644 --- a/src/components/SceneryView/SceneryTopList.vue +++ b/src/components/SceneryView/SceneryTopList.vue @@ -30,15 +30,23 @@ @@ -130,7 +138,7 @@ async function fetchTopDispatchersList() { listState.value = Status.Data.Loading; const response = await apiStore.client.get( - `api/getSceneryTop${currentListMode.value}By${currentListScope.value}?${currentListScope.value}=${searchedStationValue}` + `api/getSceneryTop${currentListMode.value}By${currentListScope.value}?${currentListScope.value}=${searchedStationValue}&countLimit=40` ); if (currentListMode.value == 'dispatchers') { @@ -178,18 +186,22 @@ async function fetchTopDispatchersList() { overflow: auto; } +.rating-list-wrapper > ul { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); + align-items: center; + gap: 0.65em; + padding-right: 0.5em; +} + .rating-list-wrapper > ul > li { - padding: 0.5em; - margin: 1em 0.5em; - - &:first-child { - margin-top: 0; - } - - &:last-child { - margin-bottom: 0; - } + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + padding: 0.25em; background-color: #2b2b2b; + height: 100%; }