From b1631f7105305f8c8162ca65fb92b3994ee3ab59 Mon Sep 17 00:00:00 2001 From: AndreĢ Oliveira Date: Tue, 17 Jan 2023 21:15:59 +0000 Subject: fix: fullscreen horizontal sidebar style --- src/features/appearance/index.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/features/appearance') diff --git a/src/features/appearance/index.ts b/src/features/appearance/index.ts index 367bcb612..b3cbd3347 100644 --- a/src/features/appearance/index.ts +++ b/src/features/appearance/index.ts @@ -135,6 +135,7 @@ function generateServiceRibbonWidthStyle( useGrayscaleServices, grayscaleServicesDim, shouldShowDragArea, + isFullScreen, ) { const width = Number(widthStr); const iconSize = Number(iconSizeStr) - iconSizeBias; @@ -249,11 +250,18 @@ function generateServiceRibbonWidthStyle( margin-top: -${width}px !important; } .darwin .sidebar { - height: ${width + verticalStyleOffset - 3 - sizeDragArea}px !important; + height: ${ + isFullScreen ? width : width + verticalStyleOffset - 3 - sizeDragArea + }px !important; + ${isFullScreen ? `padding-top: ${2}px !important` : null} } .darwin .app .app__content { padding-top: ${ - width + sidebarSizeBias + (sizeDragArea !== 0 ? 4 - sizeDragArea : 4) + isFullScreen + ? width + : width + + sidebarSizeBias + + (sizeDragArea !== 0 ? 4 - sizeDragArea : 4) }px !important; } .darwin .workspaces-drawer { @@ -395,6 +403,7 @@ function generateStyle(settings, app) { useGrayscaleServices, grayscaleServicesDim, shouldShowDragArea, + isFullScreen, ); if (shouldShowDragArea) { -- cgit v1.2.3-70-g09d2