From 7e67e34526fae424ad66ca9212c7154fc1174749 Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 10 Apr 2024 15:35:51 +0200 Subject: [PATCH] chore: wiki list tab sizing --- src/components/tabs/WikiListTab.vue | 9 ++++++--- src/store.ts | 1 - src/utils/vehicleUtils.ts | 2 -- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/tabs/WikiListTab.vue b/src/components/tabs/WikiListTab.vue index 38852aa..e5475d8 100644 --- a/src/components/tabs/WikiListTab.vue +++ b/src/components/tabs/WikiListTab.vue @@ -281,8 +281,6 @@ export default defineComponent({ flex-wrap: wrap; gap: 0.5em; - - margin: 0.5em 0; } .actions-panel_vehicles { @@ -296,9 +294,14 @@ export default defineComponent({ } } +.tab_content { + display: grid; + grid-template-rows: 30px 700px; + gap: 0.5em; +} + .table-wrapper { overflow: auto; - height: 750px; max-height: 95vh; } diff --git a/src/store.ts b/src/store.ts index f3ba8c8..a080ca6 100644 --- a/src/store.ts +++ b/src/store.ts @@ -127,7 +127,6 @@ export const useStore = defineStore({ const vehiclesData = (await http.get('/vehicles')).data; this.vehiclesData = vehiclesData; - console.log(vehiclesData); } catch (error) { console.error(error); } diff --git a/src/utils/vehicleUtils.ts b/src/utils/vehicleUtils.ts index a0f4b94..31b00b5 100644 --- a/src/utils/vehicleUtils.ts +++ b/src/utils/vehicleUtils.ts @@ -56,8 +56,6 @@ export function locoDataList(vehiclesData: IVehiclesData | undefined) { export function carDataList(vehiclesData: IVehiclesData | undefined) { if (!vehiclesData) return []; - console.log(vehiclesData); - return vehiclesData.vehicleList.reduce((acc, vehicleInfoArray) => { // check if data array has 4 elements (wagons only) if (vehicleInfoArray.length != 4) return acc;