Skip to content

Commit 556f844

Browse files
committed
fix(ui): quick search items now wrap on mobile
1 parent 8c5d9bf commit 556f844

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

playground/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const quickSearchValue = ref('')
3131
const searchGroups = [
3232
{
3333
title: 'Fruits',
34-
items: ['Apple', 'Banana', 'Orange'],
34+
items: ['Apple', 'Banana', 'Orange', 'Pear', 'Strawberry', 'Watermelon', 'Pineapple'],
3535
},
3636
{
3737
title: 'Vegetables',

src/runtime/components/QuickSearch.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@ const showQuickSearch = ref(props.show)
5454
<h3 class="text-subtitle-2 text-medium-emphasis">
5555
{{ group.title }}
5656
</h3>
57-
<v-chip-group>
57+
<v-chip-group column>
5858
<v-chip
5959
v-for="item in group.items"
6060
:key="item"
6161
:text="item"
6262
label
6363
size="small"
64-
class="mr-2"
6564
:variant="search === item ? 'flat' : 'outlined'"
6665
:color="search === item ? 'secondary' : 'primary'"
6766
@click="search === item ? search = '' : search = item"

0 commit comments

Comments
 (0)