chore: adjust workspace list height

This commit is contained in:
Kilu
2025-06-24 19:08:21 +08:00
parent 38eb323644
commit 463fd6ae6e
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ function CurrentWorkspace({
if (!userWorkspaceInfo || !selectedWorkspace) {
return (
<div
className={'flex cursor-pointer items-center gap-1 p-2 text-text-primary'}
className={'flex h-[48px] cursor-pointer items-center gap-1 p-1 text-text-primary'}
onClick={async () => {
const selectedId = userWorkspaceInfo?.selectedWorkspace?.id || userWorkspaceInfo?.workspaces[0]?.id;
@@ -25,7 +25,7 @@ function CurrentWorkspace({
void onChangeWorkspace(selectedId);
}}
>
<AppFlowyLogo className={'w-[88px]'} />
<AppFlowyLogo className='!h-full !w-[118px]' />
</div>
);
}

View File

@@ -156,7 +156,7 @@ export function Workspaces() {
<DropdownMenuLabel className='w-full overflow-hidden'>
<span className='truncate'>{currentUser?.email}</span>
</DropdownMenuLabel>
<DropdownMenuGroup className={'appflowy-scroller max-h-[236px] flex-1 overflow-x-hidden overflow-y-auto'}>
<DropdownMenuGroup className={'appflowy-scroller max-h-[200px] flex-1 overflow-y-auto overflow-x-hidden'}>
<WorkspaceList
defaultWorkspaces={userWorkspaceInfo?.workspaces}
currentWorkspaceId={currentWorkspaceId}