Skip to content

Commit

Permalink
Tidy up numeric filters (#2054)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwallacespeckle authored Feb 20, 2024
1 parent 3a25277 commit d545480
Showing 1 changed file with 34 additions and 30 deletions.
64 changes: 34 additions & 30 deletions packages/frontend-2/components/viewer/explorer/NumericFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,45 @@
</div>
<div class="flex flex-col space-y-2">
<div class="flex items-center justify-between w-full">
<div>
<div class="flex flex-col gap-2">
<label class="text-xs text-foreground-2 mr-2" for="min">Min</label>
<input
id="min"
v-model="passMin"
class="h-2 mr-2"
type="range"
name="min"
:min="props.filter.min"
:max="props.filter.max"
step="0.0001"
@change="setFilterPass()"
/>
</div>
<div class="text-xs text-foreground-2 truncate min-w-0">
{{ roundedValues.min }}
<div class="flex gap-2 items-center">
<input
id="min"
v-model="passMin"
class="h-2 mr-2"
type="range"
name="min"
:min="props.filter.min"
:max="props.filter.max"
step="0.0001"
@change="setFilterPass()"
/>
<div class="text-xs text-foreground-2 truncate min-w-0">
{{ roundedValues.min }}
</div>
</div>
</div>
</div>
<div class="flex items-center justify-between w-full">
<div class="flex items-center">
<div class="flex flex-col gap-2">
<label class="text-xs text-foreground-2 mr-2" for="max">Max</label>
<input
id="max"
v-model="passMax"
class="h-2 mr-2"
type="range"
name="max"
:min="props.filter.min"
:max="props.filter.max"
step="0.0001"
@change="setFilterPass()"
/>
</div>
<div class="text-xs text-foreground-2 truncate min-w-0">
{{ roundedValues.max }}
<div class="flex gap-2 items-center">
<input
id="max"
v-model="passMax"
class="h-2 mr-2"
type="range"
name="max"
:min="props.filter.min"
:max="props.filter.max"
step="0.0001"
@change="setFilterPass()"
/>
<div class="text-xs text-foreground-2 truncate min-w-0 max-w-12">
{{ roundedValues.max }}
</div>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit d545480

Please sign in to comment.