Skip to content

Commit 2bec31f

Browse files
frontend: vehiclesetup: Fix general style
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent d40b1f8 commit 2bec31f

File tree

9 files changed

+35
-22
lines changed

9 files changed

+35
-22
lines changed

core/frontend/src/components/vehiclesetup/SetupOverview.vue

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<template>
2-
<div>
2+
<div class="mx-2">
33
<v-row class="mt-5">
44
<v-col
55
cols="12"
66
sm="7"
7+
class="d-flex"
78
>
8-
<v-card class="pa-5 ma-2">
9+
<v-card class="pa-5 flex-grow-1 d-flex flex-column">
910
<vehicle-viewer
1011
:highlight="highlight"
1112
noannotations
1213
:autorotate="true"
14+
class="flex-grow-1"
1315
:style="{
14-
height: '500px',
16+
'min-height': '400px',
1517
width: '100%',
1618
}"
1719
/>
@@ -25,14 +27,20 @@
2527
<onboard-sensors />
2628
</v-col>
2729
</v-row>
28-
<v-sheet class="d-flex">
29-
<ping-info />
30-
<video-overview />
31-
<lights-info />
32-
<gripper-info />
33-
<leak-info />
34-
<power-info />
35-
</v-sheet>
30+
<v-row class="mt-5 mb-5">
31+
<v-col
32+
v-for="component in bottomComponents"
33+
:key="component"
34+
cols="12"
35+
sm="6"
36+
md="4"
37+
>
38+
<component
39+
:is="component"
40+
class="fill-height"
41+
/>
42+
</v-col>
43+
</v-row>
3644
</div>
3745
</template>
3846

@@ -66,6 +74,14 @@ export default Vue.extend({
6674
data() {
6775
return {
6876
highlight: null as string | null,
77+
bottomComponents: [
78+
'ping-info',
79+
'video-overview',
80+
'lights-info',
81+
'gripper-info',
82+
'leak-info',
83+
'power-info',
84+
],
6985
}
7086
},
7187
})

core/frontend/src/components/vehiclesetup/overview/LeakInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-card class="ma-2 pa-2">
2+
<v-card class="pa-2">
33
<v-card-title class="align-center">
44
Leak
55
</v-card-title>

core/frontend/src/components/vehiclesetup/overview/LightsInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-card class="ma-2 pa-2">
2+
<v-card class="pa-2">
33
<v-card-title class="align-center">
44
Lights
55
</v-card-title>

core/frontend/src/components/vehiclesetup/overview/OnboardSensors.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-card class="ma-2">
2+
<v-card class="mt-6">
33
<v-card-title class="align-center">
44
Autopilot Sensors
55
</v-card-title>

core/frontend/src/components/vehiclesetup/overview/PingInfo.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-card class="ma-2 pa-2 pinginfo">
2+
<v-card class="pa-2">
33
<v-card-title class="justify-center">
44
Ping Sensors
55
</v-card-title>
@@ -56,7 +56,4 @@ i.ping360 {
5656
transform: rotate(180deg);
5757
margin: 15px;
5858
}
59-
.pinginfo {
60-
width: fit-content;
61-
}
6259
</style>

core/frontend/src/components/vehiclesetup/overview/PowerInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-card class="ma-2 pa-2">
2+
<v-card class="pa-2">
33
<v-card-title class="align-center">
44
Battery Monitor
55
</v-card-title>

core/frontend/src/components/vehiclesetup/overview/VehicleInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-card class="ma-2">
2+
<v-card>
33
<v-card-title class="align-center">
44
Vehicle
55
</v-card-title>

core/frontend/src/components/vehiclesetup/overview/VideoOverview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-card class="ma-2 pa-2">
2+
<v-card class="pa-2">
33
<v-card-title class="align-center">
44
Video
55
</v-card-title>

core/frontend/src/components/vehiclesetup/overview/gripper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-card class="ma-2 pa-2">
2+
<v-card class="pa-2">
33
<v-card-title class="align-center">
44
Gripper
55
</v-card-title>

0 commit comments

Comments
 (0)