mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Collab ui tweaks (#913)
* decrease gap between menu icons * reduce margin of copy button * add collaboratorsCount to roomDialog toggle button
This commit is contained in:
parent
b82b0754ac
commit
2db2f3f5e4
6 changed files with 37 additions and 7 deletions
|
@ -21,7 +21,11 @@ type ToolButtonBaseProps = {
|
|||
};
|
||||
|
||||
type ToolButtonProps =
|
||||
| (ToolButtonBaseProps & { type: "button"; onClick?(): void })
|
||||
| (ToolButtonBaseProps & {
|
||||
type: "button";
|
||||
children?: React.ReactNode;
|
||||
onClick?(): void;
|
||||
})
|
||||
| (ToolButtonBaseProps & {
|
||||
type: "radio";
|
||||
|
||||
|
@ -61,6 +65,7 @@ export const ToolButton = React.forwardRef(function(
|
|||
{props.showAriaLabel && (
|
||||
<div className="ToolIcon__label">{props["aria-label"]}</div>
|
||||
)}
|
||||
{props.children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue