mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
style: workspace sidebar dropdown improvement (#2783)
This commit is contained in:
parent
26b1e9d5f1
commit
bed66235f2
@ -90,14 +90,17 @@ export const WorkspaceSidebarDropdown = observer(() => {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex items-center gap-x-8 gap-y-2 px-4 pt-4">
|
||||
<div className="flex items-center gap-x-3 gap-y-2 px-4 pt-4">
|
||||
<Menu as="div" className="relative col-span-4 text-left flex-grow h-full truncate">
|
||||
{({ open }) => (
|
||||
<>
|
||||
<Menu.Button className="text-custom-sidebar-text-200 rounded-md hover:bg-custom-sidebar-background-80 text-sm font-medium focus:outline-none w-full h-full truncate">
|
||||
<div
|
||||
className={`flex items-center gap-x-2 rounded p-1 truncate ${sidebarCollapsed ? "justify-center" : ""}`}
|
||||
className={`flex items-center justify-between gap-x-2 rounded p-1 truncate ${
|
||||
sidebarCollapsed ? "justify-center" : ""
|
||||
}`}
|
||||
>
|
||||
<div className="flex items-center gap-2">
|
||||
<div
|
||||
className={`relative grid h-6 w-6 place-items-center uppercase flex-shrink-0 ${
|
||||
!activeWorkspace?.logo && "rounded bg-custom-primary-500 text-white"
|
||||
@ -119,6 +122,7 @@ export const WorkspaceSidebarDropdown = observer(() => {
|
||||
{activeWorkspace?.name ? activeWorkspace.name : "Loading..."}
|
||||
</h4>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{!sidebarCollapsed && (
|
||||
<ChevronDown
|
||||
|
Loading…
Reference in New Issue
Block a user