fix dropdown maxheight

This commit is contained in:
Francis Cao committed 2026-04-18 10:30:31 -07:00
1 parent b822374faa
commit df29c16c00
11 files changed
+13 -11

No files matched your search

+1 -1
View File
@@ -72,12 +72,12 @@ export function BoardSelect({
...buttonProps?.style,
},
}}
maxHeight={480}
listProps={{
...listProps,
renderEmptyState:
listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />),
style: {
maxHeight: 'calc(42vh - 65px)',
width: 280,
...listProps?.style,
},
+1 -1
View File
@@ -13,7 +13,7 @@ export function CurrencySelect({ value, onChange }) {
value={value}
defaultValue={value}
onChange={onChange}
listProps={{ style: { maxHeight: 300 } }}
maxHeight={480}
onSearch={setSearch}
allowSearch
>
+1 -1
View File
@@ -76,12 +76,12 @@ export function LinkSelect({
...buttonProps?.style,
},
}}
maxHeight={480}
listProps={{
...listProps,
renderEmptyState:
listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />),
style: {
maxHeight: 'calc(42vh - 65px)',
width: 280,
...listProps?.style,
},
+1 -1
View File
@@ -76,12 +76,12 @@ export function PixelSelect({
...buttonProps?.style,
},
}}
maxHeight={480}
listProps={{
...listProps,
renderEmptyState:
listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />),
style: {
maxHeight: 'calc(42vh - 65px)',
width: 280,
...listProps?.style,
},
+1 -1
View File
@@ -50,9 +50,9 @@ export function UserSelect({
onSearch={handleSearch}
onChange={handleChange}
onOpenChange={handleOpenChange}
maxHeight={480}
listProps={{
renderEmptyState: () => <Empty message={t(messages.noResultsFound)} />,
style: { maxHeight: 'calc(42vh - 65px)' },
}}
>
{listItems.map(({ id, username }) => (
+1 -1
View File
@@ -91,12 +91,12 @@ export function WebsiteSelect({
...buttonProps?.style,
},
}}
maxHeight={480}
listProps={{
...listProps,
renderEmptyState:
listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />),
style: {
maxHeight: 'calc(42vh - 65px)',
width: 280,
...listProps?.style,
},