mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Remove unnecessary container from PanelCanvas
This commit is contained in:
parent
0fd29fa761
commit
c46765382b
1 changed files with 12 additions and 14 deletions
|
@ -16,20 +16,18 @@ export const PanelCanvas: React.FC<PanelCanvasProps> = ({
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<Panel title="Canvas">
|
<Panel title="Canvas">
|
||||||
<div className="panelColumn">
|
<h5>Canvas Background Color</h5>
|
||||||
<h5>Canvas Background Color</h5>
|
<ColorPicker
|
||||||
<ColorPicker
|
color={viewBackgroundColor}
|
||||||
color={viewBackgroundColor}
|
onChange={color => onViewBackgroundColorChange(color)}
|
||||||
onChange={color => onViewBackgroundColorChange(color)}
|
/>
|
||||||
/>
|
<button
|
||||||
<button
|
type="button"
|
||||||
type="button"
|
onClick={onClearCanvas}
|
||||||
onClick={onClearCanvas}
|
title="Clear the canvas & reset background color"
|
||||||
title="Clear the canvas & reset background color"
|
>
|
||||||
>
|
Clear canvas
|
||||||
Clear canvas
|
</button>
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</Panel>
|
</Panel>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue