mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
chore: wiki list tab sizing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user