mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:13:51 +01:00
Fix extra dropdown element
This commit is contained in:
Binary file not shown.
@@ -48,7 +48,7 @@ export default function Workspace() {
|
||||
className="pointer-events-none px-3 bg-gray-50 text-gray-900 border-b border-b-gray-200 pt-[1px]"
|
||||
alignItems="center"
|
||||
>
|
||||
<div className="flex-1 -ml-2">
|
||||
<div className="flex-1 -ml-2 pointer-events-none">
|
||||
<WorkspaceDropdown className="pointer-events-auto" />
|
||||
</div>
|
||||
<div className="flex-[2] text-center text-gray-700 text-sm truncate">
|
||||
|
||||
@@ -54,12 +54,12 @@ export function Dropdown({ children, items }: DropdownProps) {
|
||||
}, [ref.current, open]);
|
||||
|
||||
return (
|
||||
<div className="pointer-events-auto">
|
||||
<>
|
||||
{child}
|
||||
{open && triggerRect && (
|
||||
<Menu items={items} triggerRect={triggerRect} onClose={handleClose} />
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user