diff --git a/src/renderer/src/components/GlobalSidebar.tsx b/src/renderer/src/components/GlobalSidebar.tsx index 8846eae..1be547c 100644 --- a/src/renderer/src/components/GlobalSidebar.tsx +++ b/src/renderer/src/components/GlobalSidebar.tsx @@ -96,7 +96,7 @@ export const GlobalSidebar: React.FC = () => {
{ className={`global-sidebar-toggle ${!showToggle ? 'hidden' : ''}`} style={{ willChange: 'opacity, transform', - width: `${24 * zoom}px`, - height: `${60 * zoom}px` + width: `24px`, + height: `60px` }} > @@ -124,9 +124,9 @@ export const GlobalSidebar: React.FC = () => { backgroundColor: 'var(--ss-card-bg)', height: 'fit-content', willChange: 'opacity, transform', - width: `${60 * zoom}px`, - padding: `${12 * zoom}px ${8 * zoom}px`, - gap: `${12 * zoom}px` + width: `60px`, + padding: `12px 8px`, + gap: `12px` }} > {/* 顶部的关闭/收起按钮 */} @@ -171,15 +171,17 @@ export const GlobalSidebar: React.FC = () => { - - - + {import.meta.env.DEV && ( + + + + )}
)