diff --git a/src/renderer/features/sidebar/components/sidebar.tsx b/src/renderer/features/sidebar/components/sidebar.tsx index c554a640..93ef052b 100644 --- a/src/renderer/features/sidebar/components/sidebar.tsx +++ b/src/renderer/features/sidebar/components/sidebar.tsx @@ -89,16 +89,12 @@ export const Sidebar = () => { const scrollAreaHeight = useMemo(() => { if (showImage) { - if (windowBarStyle === Platform.WINDOWS || windowBarStyle === Platform.MACOS) { - // Subtract the height of the top bar and padding - return `calc(100% - 65px - var(--mantine-spacing-xs) - ${sidebar.leftWidth})`; - } - - return `calc(100% - ${sidebar.leftWidth})`; + // Subtract the height of the top bar and padding + return `calc(100% - 65px - var(--mantine-spacing-xs) - ${sidebar.leftWidth})`; } return '100%'; - }, [showImage, sidebar.leftWidth, windowBarStyle]); + }, [showImage, sidebar.leftWidth]); const isCustomWindowBar = windowBarStyle === Platform.WINDOWS || windowBarStyle === Platform.MACOS;