fix dropdown maxheight

This commit is contained in:
Francis Cao committed 2026-04-18 10:33:35 -07:00
1 parent 8b04be48de
commit 9fc3fa8d87
11 files changed
+13 -11

No files matched your search

@@ -33,7 +33,7 @@ export function LanguageSetting() {
allowSearch allowSearch
onSearch={setSearch} onSearch={setSearch}
onOpenChange={handleOpen} onOpenChange={handleOpen}
listProps={{ style: { maxHeight: 300 } }} maxHeight={480}
style={{ minWidth: '250px' }} style={{ minWidth: '250px' }}
> >
{items.map(item => ( {items.map(item => (
@@ -29,7 +29,7 @@ export function TimezoneSetting() {
allowSearch={true} allowSearch={true}
onSearch={setSearch} onSearch={setSearch}
onOpenChange={handleOpen} onOpenChange={handleOpen}
listProps={{ style: { maxHeight: 300 } }} maxHeight={480}
style={{ minWidth: '250px' }} style={{ minWidth: '250px' }}
> >
{items.map((item: any) => ( {items.map((item: any) => (
@@ -154,10 +154,9 @@ export function CompareTables({ websiteId }: { websiteId: string }) {
<Select <Select
label={t(labels.compare)} label={t(labels.compare)}
value={view} value={view}
defaultValue={view}
onChange={handleChange} onChange={handleChange}
style={{ width: 200 }} maxHeight={480}
popoverProps={{ style: { width: 200 } }} listProps={{ style: { width: 200 } }}
> >
{items.map(({ id, label }) => ( {items.map(({ id, label }) => (
<ListItem key={id} id={id}> <ListItem key={id} id={id}>
@@ -42,6 +42,7 @@ export function EventProperties({ websiteId }: { websiteId: string }) {
value={eventName} value={eventName}
onChange={setEventName} onChange={setEventName}
placeholder="" placeholder=""
maxHeight={480}
> >
{events?.map(p => ( {events?.map(p => (
<ListItem key={p} id={p}> <ListItem key={p} id={p}>
@@ -55,6 +56,7 @@ export function EventProperties({ websiteId }: { websiteId: string }) {
onChange={setPropertyName} onChange={setPropertyName}
isDisabled={!eventName} isDisabled={!eventName}
placeholder="" placeholder=""
maxHeight={480}
> >
{properties?.map(p => ( {properties?.map(p => (
<ListItem key={p} id={p}> <ListItem key={p} id={p}>
@@ -33,6 +33,7 @@ export function SessionProperties({ websiteId }: { websiteId: string }) {
value={propertyName} value={propertyName}
onChange={setPropertyName} onChange={setPropertyName}
placeholder="" placeholder=""
maxHeight={480}
> >
{properties?.map(p => ( {properties?.map(p => (
<ListItem key={p} id={p}> <ListItem key={p} id={p}>
+1 -1
View File
@@ -72,12 +72,12 @@ export function BoardSelect({
...buttonProps?.style, ...buttonProps?.style,
}, },
}} }}
maxHeight={480}
listProps={{ listProps={{
...listProps, ...listProps,
renderEmptyState: renderEmptyState:
listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />), listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />),
style: { style: {
maxHeight: 'calc(42vh - 65px)',
width: 280, width: 280,
...listProps?.style, ...listProps?.style,
}, },
+1 -1
View File
@@ -13,7 +13,7 @@ export function CurrencySelect({ value, onChange }) {
value={value} value={value}
defaultValue={value} defaultValue={value}
onChange={onChange} onChange={onChange}
listProps={{ style: { maxHeight: 300 } }} maxHeight={480}
onSearch={setSearch} onSearch={setSearch}
allowSearch allowSearch
> >
+1 -1
View File
@@ -76,12 +76,12 @@ export function LinkSelect({
...buttonProps?.style, ...buttonProps?.style,
}, },
}} }}
maxHeight={480}
listProps={{ listProps={{
...listProps, ...listProps,
renderEmptyState: renderEmptyState:
listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />), listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />),
style: { style: {
maxHeight: 'calc(42vh - 65px)',
width: 280, width: 280,
...listProps?.style, ...listProps?.style,
}, },
+1 -1
View File
@@ -76,12 +76,12 @@ export function PixelSelect({
...buttonProps?.style, ...buttonProps?.style,
}, },
}} }}
maxHeight={480}
listProps={{ listProps={{
...listProps, ...listProps,
renderEmptyState: renderEmptyState:
listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />), listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />),
style: { style: {
maxHeight: 'calc(42vh - 65px)',
width: 280, width: 280,
...listProps?.style, ...listProps?.style,
}, },
+1 -1
View File
@@ -50,9 +50,9 @@ export function UserSelect({
onSearch={handleSearch} onSearch={handleSearch}
onChange={handleChange} onChange={handleChange}
onOpenChange={handleOpenChange} onOpenChange={handleOpenChange}
maxHeight={480}
listProps={{ listProps={{
renderEmptyState: () => <Empty message={t(messages.noResultsFound)} />, renderEmptyState: () => <Empty message={t(messages.noResultsFound)} />,
style: { maxHeight: 'calc(42vh - 65px)' },
}} }}
> >
{listItems.map(({ id, username }) => ( {listItems.map(({ id, username }) => (
+1 -1
View File
@@ -91,12 +91,12 @@ export function WebsiteSelect({
...buttonProps?.style, ...buttonProps?.style,
}, },
}} }}
maxHeight={480}
listProps={{ listProps={{
...listProps, ...listProps,
renderEmptyState: renderEmptyState:
listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />), listProps?.renderEmptyState || (() => <Empty message={t(messages.noResultsFound)} />),
style: { style: {
maxHeight: 'calc(42vh - 65px)',
width: 280, width: 280,
...listProps?.style, ...listProps?.style,
}, },