Skip to content

Commit b8c2b05

Browse files
committed
style adjustments to watershed toggles
1 parent 6fb273b commit b8c2b05

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

client/src/components/MapFilters.vue

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -159,37 +159,37 @@
159159
>
160160
<div
161161
v-for="button in localFilters.matchFilters.find(cat => cat.category === 'Type').filters"
162-
class="legend-item row"
162+
class="legend-item"
163163
>
164-
<div class="col legend-point">
164+
<div class="legend-point">
165165
<span
166166
class="dot"
167167
:class="button.matchValue"
168168
/>
169169
{{ button.label }}
170170
</div>
171171
<q-toggle
172-
class="col"
173172
:key="button"
174173
v-model="button.model"
175174
@update:model-value="emit('update-filter', localFilters)"
176175
/>
177176
</div>
178177
<div
179178
v-if="localFilters.matchFilters[0].filters.find(el => el.property)"
180-
class="legend-item row"
179+
class="legend-item"
181180
>
182-
<div class="col legend-point">
181+
<div class="legend-point">
183182
<span class="dot active" />
184183
Active Application
185184
</div>
186-
<q-toggle
187-
class="col"
188-
v-model="localFilters.matchFilters[4].filters.find(el => el.matchValue === 'ACTIVE APPL.').model"
189-
@update:model-value="() => {
190-
emit('update-filter', localFilters)
191-
}"
192-
/>
185+
<div>
186+
<q-toggle
187+
v-model="localFilters.matchFilters[4].filters.find(el => el.matchValue === 'ACTIVE APPL.').model"
188+
@update:model-value="() => {
189+
emit('update-filter', localFilters)
190+
}"
191+
/>
192+
</div>
193193
</div>
194194
</q-card>
195195
</div>
@@ -760,7 +760,8 @@ const clearFilters = () => {
760760
}
761761
762762
.watershed-legend {
763-
display: flex;
763+
display: grid;
764+
grid-template-columns: 1fr 1fr;
764765
position: absolute;
765766
top: 0.2rem;
766767
left: calc(100% + 0.3rem);
@@ -769,17 +770,15 @@ const clearFilters = () => {
769770
.legend-contents {
770771
background-color: rgba(255, 255, 255, 0.8);
771772
transition-duration: 0.2s;
772-
width: 23rem;
773-
774-
.q-toggle {
775-
width: 1rem;
776-
}
773+
width: 16rem;
777774
778775
&:hover {
779776
background-color: rgba(255, 255, 255);
780777
}
778+
781779
.legend-item {
782780
display: flex;
781+
justify-content: space-between;
783782
784783
.legend-point {
785784
display: flex;

0 commit comments

Comments
 (0)