mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-18 03:34:43 +01:00
fix: docked sidebar width (#9213)
This commit is contained in:
@@ -1550,6 +1550,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
["--ui-pointerEvents" as any]: shouldBlockPointerEvents
|
["--ui-pointerEvents" as any]: shouldBlockPointerEvents
|
||||||
? POINTER_EVENTS.disabled
|
? POINTER_EVENTS.disabled
|
||||||
: POINTER_EVENTS.enabled,
|
: POINTER_EVENTS.enabled,
|
||||||
|
["--right-sidebar-width" as any]: "302px",
|
||||||
}}
|
}}
|
||||||
ref={this.excalidrawContainerRef}
|
ref={this.excalidrawContainerRef}
|
||||||
onDrop={this.handleAppOnDrop}
|
onDrop={this.handleAppOnDrop}
|
||||||
|
|||||||
@@ -526,7 +526,7 @@ const LayerUI = ({
|
|||||||
appState.openSidebar &&
|
appState.openSidebar &&
|
||||||
isSidebarDocked &&
|
isSidebarDocked &&
|
||||||
device.editor.canFitSidebar
|
device.editor.canFitSidebar
|
||||||
? { width: `calc(100% - var(--right-sidebar-width)px)` }
|
? { width: `calc(100% - var(--right-sidebar-width))` }
|
||||||
: {}
|
: {}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -136,9 +136,6 @@ export const SidebarInner = forwardRef(
|
|||||||
<Island
|
<Island
|
||||||
{...rest}
|
{...rest}
|
||||||
className={clsx("sidebar", { "sidebar--docked": docked }, className)}
|
className={clsx("sidebar", { "sidebar--docked": docked }, className)}
|
||||||
style={{
|
|
||||||
"--right-sidebar-width": "302px",
|
|
||||||
}}
|
|
||||||
ref={islandRef}
|
ref={islandRef}
|
||||||
>
|
>
|
||||||
<SidebarPropsContext.Provider value={headerPropsRef.current}>
|
<SidebarPropsContext.Provider value={headerPropsRef.current}>
|
||||||
|
|||||||
Reference in New Issue
Block a user