Skip to content

Commit

Permalink
feat(mobile): full height search dialog
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed Jun 21, 2024
1 parent d166e8e commit 20f1f25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"components": "@/components",
"utils": "@/lib/utils"
}
}
}
2 changes: 1 addition & 1 deletion components/layout/SearchDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<VisuallyHidden as-child>
<UiDialogDescription aria-describedby="undefined" />
</VisuallyHidden>
<UiCommand v-model:search-term="input" class="h-[350px]">
<UiCommand v-model:search-term="input" class="h-screen md:h-[350px]">
<UiCommandInput
placeholder="Search documentation..."
@keydown.enter="handleEnter"
Expand Down
2 changes: 1 addition & 1 deletion components/ui/command/CommandList.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ComboboxContent v-bind="forwarded" :class="cn('max-h-[300px] overflow-y-auto overflow-x-hidden', props.class)">
<ComboboxContent v-bind="forwarded" :class="cn('overflow-y-auto overflow-x-hidden', props.class)">
<div role="presentation">
<slot />
</div>
Expand Down

0 comments on commit 20f1f25

Please sign in to comment.