Skip to content

Commit 9baa91d

Browse files
committed
use --input-width and --button-width in combobox countries example
1 parent c547a72 commit 9baa91d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playgrounds/react/pages/combobox/combobox-countries.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export default function Home() {
7272
</Combobox.Button>
7373
</span>
7474

75-
<div className="absolute mt-1 w-full rounded-md bg-white shadow-lg">
76-
<Combobox.Options className="shadow-xs max-h-60 overflow-auto rounded-md py-1 text-base leading-6 focus:outline-none sm:text-sm sm:leading-5">
75+
<div className="absolute mt-1 rounded-md bg-white shadow-lg">
76+
<Combobox.Options className="shadow-xs max-h-60 w-[calc(var(--input-width)+var(--button-width))] overflow-auto rounded-md py-1 text-base leading-6 focus:outline-none sm:text-sm sm:leading-5">
7777
{countries.map((country) => (
7878
<Combobox.Option
7979
key={country}

0 commit comments

Comments
 (0)