Keep temporal filter pills on single row
Use horizontal scroll with hidden scrollbar instead of flex-wrap. Pills stay on one line and scroll on narrow screens. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
76840567cb
commit
021198ab0f
1 changed files with 2 additions and 2 deletions
|
|
@ -23,13 +23,13 @@ const options: { value: TemporalFilter; labelKey: string }[] = [
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<div class="flex gap-2 overflow-x-auto" style="-ms-overflow-style: none; scrollbar-width: none;">
|
||||
<Button
|
||||
v-for="option in options"
|
||||
:key="option.value"
|
||||
:variant="props.modelValue === option.value ? 'default' : 'outline'"
|
||||
size="sm"
|
||||
class="rounded-full text-xs"
|
||||
class="rounded-full text-xs shrink-0"
|
||||
@click="emit('update:modelValue', option.value)"
|
||||
>
|
||||
{{ t(option.labelKey) }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue