Skip to content

Commit 1d3f01a

Browse files
committed
fixup! fix: dividing line between jobs and vehicles
1 parent 0e8f3d3 commit 1d3f01a

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

src/fragments/forms/map-form/components/optimization/Optimization.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
{{ $t('optimization.addFromMap') + $t('optimization.job') }}
2828
</v-btn>
2929
<!-- low priority TODO: more elegant solution for this? -->
30-
<job-list v-if="mapViewData.hasRoutes()" :jobs="jobs" :jobs-shown="jobsExpanded" :map-view-data="mapViewData"
30+
<job-list class="content-list" v-if="mapViewData.hasRoutes()" :jobs="jobs" :jobs-shown="jobsExpanded" :map-view-data="mapViewData"
3131
v-show="jobsExpanded"></job-list>
32-
<job-list v-else :jobs="jobs" :jobs-shown="jobsExpanded"></job-list>
33-
<v-card v-if="!jobsExpanded" @click="jobsExpanded=!jobsExpanded">
32+
<job-list class="content-list" v-else :jobs="jobs" :jobs-shown="jobsExpanded"></job-list>
33+
<v-card class="content-list" v-if="!jobsExpanded" @click="jobsExpanded=!jobsExpanded">
3434
<v-card-title>
3535
<v-icon style="padding: 0 5px 0 7px">work</v-icon>
3636
<b>{{ $t('optimization.savedJobs') + jobs.length }}</b>

src/fragments/forms/map-form/components/optimization/components/job-list/JobList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="job-inputs">
3-
<v-expansion-panel class="content-list" :value="jobExtended" :expand="true">
3+
<v-expansion-panel class="no-shadow" :value="jobExtended" :expand="true">
44
<v-expansion-panel-content style="background: transparent;" v-for="(j, i) in jobs" :key="i">
55
<div v-if="localMapViewData === null || !unassignedIds.includes(j.id)" slot="header" style="padding-bottom: 0;"><v-icon style="padding: 0 5px 0 0">work</v-icon><b>Job {{j.id}} - {{ j.location[0].toPrecision(8) }}, {{ j.location[1].toPrecision(8)}}</b></div>
66
<div v-else slot="header" style="padding-bottom: 0"><v-icon style="padding: 0 5px 0 0">work</v-icon><b>Job {{j.id}} - {{ j.location[0].toPrecision(8) }}, {{ j.location[1].toPrecision(8)}}

src/fragments/forms/map-form/components/optimization/components/job-list/job-list.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
color: darkgoldenrod
88
}
99

10-
.content-list {
10+
.no-shadow {
1111
box-shadow: none;
12-
border-bottom: 2px solid #c62828;
13-
margin: 0 0 5px 0;
1412
}

src/fragments/forms/map-form/components/optimization/optimization.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@ ul.vehicle-inputs {
4646
max-width: 58px;
4747
margin-left: 0;
4848
}
49+
50+
.content-list {
51+
box-shadow: none;
52+
border-bottom: 2px solid #c62828;
53+
}

0 commit comments

Comments
 (0)