Make the language and font dropdowns match their trigger width
The PopoverContent used w-[--reka-popover-trigger-width], which Tailwind v4 compiles to the invalid `width: --reka-popover-trigger-width`, so the dropdown collapsed to its content width. Use the v4 CSS-variable syntax w-(--reka-popover-trigger-width) so it resolves to var(...) and spans the full trigger width, matching the SearchableSelect component.
This commit is contained in:
parent
c9209cb2a9
commit
5a96bb490a
2 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ const select = (font: string) => {
|
|||
</Button>
|
||||
</PopoverTrigger>
|
||||
|
||||
<PopoverContent class="w-[--reka-popover-trigger-width] p-0" align="start">
|
||||
<PopoverContent class="w-(--reka-popover-trigger-width) p-0" align="start">
|
||||
<Command>
|
||||
<CommandInput :placeholder="searchPlaceholder" />
|
||||
<CommandList>
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ const select = (code: string) => {
|
|||
</Button>
|
||||
</PopoverTrigger>
|
||||
|
||||
<PopoverContent class="w-[--reka-popover-trigger-width] p-0" align="start">
|
||||
<PopoverContent class="w-(--reka-popover-trigger-width) p-0" align="start">
|
||||
<Command>
|
||||
<CommandInput :placeholder="searchPlaceholder" />
|
||||
<CommandList>
|
||||
|
|
|
|||
Loading…
Reference in a new issue