fix: workspace dropdown scroll (#2900)

This commit is contained in:
Anmol Singh Bhatia 2023-11-27 18:25:40 +05:30 committed by GitHub
parent f48cd6f50c
commit b717518fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ export const WorkspaceSidebarDropdown = observer(() => {
leaveTo="transform opacity-0 scale-95"
>
<Menu.Items className="fixed left-4 z-20 mt-1 flex flex-col w-full max-w-[17rem] origin-top-left rounded-md border border-custom-sidebar-border-200 bg-custom-sidebar-background-100 shadow-lg outline-none">
<div className="flex flex-col items-start justify-start gap-3 p-3">
<div className="flex flex-col items-start justify-start gap-3 p-3 max-h-96 overflow-y-scroll">
<span className="text-sm font-medium text-custom-sidebar-text-200">Workspace</span>
{workspaces ? (
<div className="flex h-full w-full flex-col items-start justify-start gap-1.5">