Skip to content

Commit 41084f2

Browse files
committed
Prevent select popover from overflowing viewport
1 parent 11ef742 commit 41084f2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/viewer/src/lib/components/field-editors/multi-select.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
{/if}
214214
</div>
215215
</CommandInput>
216-
<CommandList class="max-md:h-[300px] md:max-h-[50vh]">
216+
<CommandList class="max-md:h-[300px] md:max-h-[40vh]">
217217
<CommandEmpty>{emptyResultsPlaceholder ?? $t`No items found`}</CommandEmpty>
218218
<CommandGroup>
219219
{#each renderedOptions as value, i (getId(value))}

frontend/viewer/src/lib/components/field-editors/select.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
{/if}
130130
</div>
131131
</CommandInput>
132-
<CommandList class="max-md:h-[300px] md:max-h-[50vh]">
132+
<CommandList class="max-md:h-[300px] md:max-h-[40vh]">
133133
<CommandEmpty>{emptyResultsPlaceholder ?? $t`No items found`}</CommandEmpty>
134134
<CommandGroup>
135135
{#each renderedOptions as option, i (getId(option))}

0 commit comments

Comments
 (0)