mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: toolbar unnecessarily eats too much width (#2924)
This commit is contained in:
parent
23a8891e0e
commit
1e17c1967b
2 changed files with 4 additions and 2 deletions
|
@ -46,7 +46,7 @@ export const MobileMenu = ({
|
||||||
renderCustomFooter,
|
renderCustomFooter,
|
||||||
viewModeEnabled,
|
viewModeEnabled,
|
||||||
}: MobileMenuProps) => {
|
}: MobileMenuProps) => {
|
||||||
const renderFixedSideContainer = () => {
|
const renderToolbar = () => {
|
||||||
return (
|
return (
|
||||||
<FixedSideContainer side="top" className="App-top-bar">
|
<FixedSideContainer side="top" className="App-top-bar">
|
||||||
<Section heading="shapes">
|
<Section heading="shapes">
|
||||||
|
@ -136,7 +136,7 @@ export const MobileMenu = ({
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{!viewModeEnabled && renderFixedSideContainer()}
|
{!viewModeEnabled && renderToolbar()}
|
||||||
<div
|
<div
|
||||||
className="App-bottom-bar"
|
className="App-bottom-bar"
|
||||||
style={{
|
style={{
|
||||||
|
|
|
@ -226,6 +226,8 @@
|
||||||
|
|
||||||
.App-top-bar {
|
.App-top-bar {
|
||||||
z-index: var(--zIndex-layerUI);
|
z-index: var(--zIndex-layerUI);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.App-bottom-bar {
|
.App-bottom-bar {
|
||||||
|
|
Loading…
Add table
Reference in a new issue