mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 19:48:11 +00:00
chore: wiki list tab sizing
This commit is contained in:
@@ -281,8 +281,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
|
|
||||||
margin: 0.5em 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions-panel_vehicles {
|
.actions-panel_vehicles {
|
||||||
@@ -296,9 +294,14 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab_content {
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: 30px 700px;
|
||||||
|
gap: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
.table-wrapper {
|
.table-wrapper {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
height: 750px;
|
|
||||||
max-height: 95vh;
|
max-height: 95vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ export const useStore = defineStore({
|
|||||||
const vehiclesData = (await http.get<IVehiclesData>('/vehicles')).data;
|
const vehiclesData = (await http.get<IVehiclesData>('/vehicles')).data;
|
||||||
this.vehiclesData = vehiclesData;
|
this.vehiclesData = vehiclesData;
|
||||||
|
|
||||||
console.log(vehiclesData);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,8 +56,6 @@ export function locoDataList(vehiclesData: IVehiclesData | undefined) {
|
|||||||
export function carDataList(vehiclesData: IVehiclesData | undefined) {
|
export function carDataList(vehiclesData: IVehiclesData | undefined) {
|
||||||
if (!vehiclesData) return [];
|
if (!vehiclesData) return [];
|
||||||
|
|
||||||
console.log(vehiclesData);
|
|
||||||
|
|
||||||
return vehiclesData.vehicleList.reduce<ICarWagon[]>((acc, vehicleInfoArray) => {
|
return vehiclesData.vehicleList.reduce<ICarWagon[]>((acc, vehicleInfoArray) => {
|
||||||
// check if data array has 4 elements (wagons only)
|
// check if data array has 4 elements (wagons only)
|
||||||
if (vehicleInfoArray.length != 4) return acc;
|
if (vehicleInfoArray.length != 4) return acc;
|
||||||
|
|||||||
Reference in New Issue
Block a user