Skip to content

Commit 7917815

Browse files
fix: selects
1 parent 75cb04e commit 7917815

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/components/input-elements/DateRangePicker/DateRangePicker.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ const DateRangePicker = React.forwardRef<HTMLDivElement, DateRangePickerProps>((
332332
anchor="bottom end"
333333
className={tremorTwMerge(
334334
// common
335-
"[--anchor-gap:4px] divide-y overflow-y-auto outline-none border",
335+
"[--anchor-gap:4px] divide-y overflow-y-auto outline-none border min-w-40",
336336
// light
337337
"shadow-tremor-dropdown bg-tremor-background border-tremor-border divide-tremor-border rounded-tremor-default",
338338
// dark

src/components/input-elements/MultiSelect/MultiSelect.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,10 @@ const MultiSelect = React.forwardRef<HTMLInputElement, MultiSelectProps>((props,
262262
leaveTo="opacity-0 -translate-y-4"
263263
>
264264
<ListboxOptions
265+
anchor="bottom start"
265266
className={tremorTwMerge(
266267
// common
267-
"absolute z-10 w-full divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1",
268+
"z-10 divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] border [--anchor-gap:4px]",
268269
// light
269270
"bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown",
270271
// dark

src/components/input-elements/SearchSelect/SearchSelect.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,10 @@ const SearchSelect = React.forwardRef<HTMLInputElement, SearchSelectProps>((prop
234234
leaveTo="opacity-0 -translate-y-4"
235235
>
236236
<ComboboxOptions
237+
anchor="bottom start"
237238
className={tremorTwMerge(
238239
// common
239-
"absolute z-10 w-full divide-y overflow-y-auto outline-none rounded-tremor-default text-tremor-default max-h-[228px] left-0 border my-1",
240+
"z-10 divide-y overflow-y-auto outline-none rounded-tremor-default text-tremor-default max-h-[228px] border [--anchor-gap:4px]",
240241
// light
241242
"bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown",
242243
// dark

src/components/input-elements/Select/Select.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ const Select = React.forwardRef<HTMLInputElement, SelectProps>((props, ref) => {
196196
leaveTo="opacity-0 -translate-y-4"
197197
>
198198
<ListboxOptions
199+
anchor="bottom start"
199200
className={tremorTwMerge(
200201
// common
201-
"absolute z-10 w-full divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1",
202+
"z-10 divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] border [--anchor-gap:4px]",
202203
// light
203204
"bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown",
204205
// dark

0 commit comments

Comments
 (0)