chore: wiki list tab sizing

This commit is contained in:
2024-04-10 15:35:51 +02:00
parent 6cfc535dec
commit 7e67e34526
3 changed files with 6 additions and 6 deletions
+6 -3
View File
@@ -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;
}
-1
View File
@@ -127,7 +127,6 @@ export const useStore = defineStore({
const vehiclesData = (await http.get<IVehiclesData>('/vehicles')).data;
this.vehiclesData = vehiclesData;
console.log(vehiclesData);
} catch (error) {
console.error(error);
}
-2
View File
@@ -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<ICarWagon[]>((acc, vehicleInfoArray) => {
// check if data array has 4 elements (wagons only)
if (vehicleInfoArray.length != 4) return acc;