chore: update shortcut compact style

This commit is contained in:
Steven
2023-08-03 09:13:39 +08:00
parent 6395b698b9
commit 606652f7a2
5 changed files with 256 additions and 173 deletions

View File

@@ -33,11 +33,16 @@ const Dropdown: React.FC<Props> = (props: Props) => {
}
}, [dropdownStatus]);
const handleToggleDropdownStatus = (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
e.stopPropagation();
toggleDropdownStatus();
};
return (
<div
ref={dropdownWrapperRef}
className={`relative flex flex-col justify-start items-start select-none ${className ?? ""}`}
onClick={() => toggleDropdownStatus()}
onClick={handleToggleDropdownStatus}
>
{trigger ? (
trigger