fix: adjust sidebar toggle button sizing and styling
Adjusts the CSS and SVG dimensions of the custom sidebar toggle button so that it identically matches the 36x36px Excalidraw UI native buttons (like the Help button) in both Light and Dark themes. The inner SVG icon was precisely aligned to be 16x16px and use a 1.8px stroke to match the weight and left-alignment of the native icons. The .secondary-button class padding that was interfering was removed.
This commit is contained in:
+4
-4
@@ -80,10 +80,10 @@ async function requestJson<T>(url: string, init?: RequestInit): Promise<T> {
|
||||
|
||||
function DrawerIcon() {
|
||||
return (
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true" width="20" height="20">
|
||||
<rect x="3.5" y="5" width="17" height="14" rx="2.5" fill="none" stroke="currentColor" strokeWidth="2" />
|
||||
<path d="M9 5v14" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" />
|
||||
<path d="M5.75 9h1.5M5.75 12h1.5M5.75 15h1.5" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" />
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true" width="16" height="16">
|
||||
<rect x="3.5" y="5" width="17" height="14" rx="2.5" fill="none" stroke="currentColor" strokeWidth="1.5" />
|
||||
<path d="M9 5v14" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" />
|
||||
<path d="M5.75 9h1.5M5.75 12h1.5M5.75 15h1.5" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
+2
-2
@@ -182,8 +182,8 @@ input {
|
||||
}
|
||||
|
||||
.app-actions-toggle svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.primary-button,
|
||||
|
||||
Reference in New Issue
Block a user