mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
fix: add scroll area to server selector dropdown in sidebar
This commit is contained in:
@@ -147,7 +147,9 @@ export const CollapsedSidebar = () => {
|
|||||||
/>
|
/>
|
||||||
</DropdownMenu.Target>
|
</DropdownMenu.Target>
|
||||||
<DropdownMenu.Dropdown>
|
<DropdownMenu.Dropdown>
|
||||||
|
<ScrollArea style={{ maxHeight: '95vh' }}>
|
||||||
<ServerSelectorItems />
|
<ServerSelectorItems />
|
||||||
|
</ScrollArea>
|
||||||
</DropdownMenu.Dropdown>
|
</DropdownMenu.Dropdown>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import { Box } from '/@/shared/components/box/box';
|
|||||||
import { DropdownMenu } from '/@/shared/components/dropdown-menu/dropdown-menu';
|
import { DropdownMenu } from '/@/shared/components/dropdown-menu/dropdown-menu';
|
||||||
import { Group } from '/@/shared/components/group/group';
|
import { Group } from '/@/shared/components/group/group';
|
||||||
import { Icon } from '/@/shared/components/icon/icon';
|
import { Icon } from '/@/shared/components/icon/icon';
|
||||||
|
import { ScrollArea } from '/@/shared/components/scroll-area/scroll-area';
|
||||||
import { Stack } from '/@/shared/components/stack/stack';
|
import { Stack } from '/@/shared/components/stack/stack';
|
||||||
import { Text } from '/@/shared/components/text/text';
|
import { Text } from '/@/shared/components/text/text';
|
||||||
import { ServerType } from '/@/shared/types/domain-types';
|
import { ServerType } from '/@/shared/types/domain-types';
|
||||||
@@ -94,7 +95,9 @@ export const ServerSelector = () => {
|
|||||||
</div>
|
</div>
|
||||||
</DropdownMenu.Target>
|
</DropdownMenu.Target>
|
||||||
<DropdownMenu.Dropdown style={{ width: `${widthOfTarget}px` }}>
|
<DropdownMenu.Dropdown style={{ width: `${widthOfTarget}px` }}>
|
||||||
|
<ScrollArea style={{ maxHeight: 'calc(100vh - 200px)' }}>
|
||||||
<ServerSelectorItems />
|
<ServerSelectorItems />
|
||||||
|
</ScrollArea>
|
||||||
</DropdownMenu.Dropdown>
|
</DropdownMenu.Dropdown>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user