From 974cc79a1738516b6914144ca4210654d2f5dc51 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Sun, 2 Jun 2024 00:50:46 +0800 Subject: [PATCH] update --- src/sass/gnome-shell/extensions-46-0/_dash-to-dock.scss | 2 -- src/sass/gnome-shell/widgets-46-0/_dash.scss | 9 ++++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/sass/gnome-shell/extensions-46-0/_dash-to-dock.scss b/src/sass/gnome-shell/extensions-46-0/_dash-to-dock.scss index 2d06a1a6..bd2f566f 100644 --- a/src/sass/gnome-shell/extensions-46-0/_dash-to-dock.scss +++ b/src/sass/gnome-shell/extensions-46-0/_dash-to-dock.scss @@ -142,8 +142,6 @@ .app-grid-running-dot { background-color: if($variant == 'light', rgba(black, 0.75), rgba(white, 0.75)); - margin-bottom: 0 !important; - margin-top: 18px !important; } StWidget.focused .app-grid-running-dot { diff --git a/src/sass/gnome-shell/widgets-46-0/_dash.scss b/src/sass/gnome-shell/widgets-46-0/_dash.scss index 4cf5d6be..58ba821d 100644 --- a/src/sass/gnome-shell/widgets-46-0/_dash.scss +++ b/src/sass/gnome-shell/widgets-46-0/_dash.scss @@ -9,7 +9,9 @@ $dash_spacing: $base_margin * 0.5; // container for the dash #dash { - margin-top: $dash_edge_offset; + // a bit of spacing so that dash doesn't touch the screen edges + padding-left: $base_padding; + padding-right: $base_padding; // background behind item container .dash-background { @@ -71,7 +73,8 @@ $dash_spacing: $base_margin * 0.5; // running app dot .app-grid-running-dot { // manually position the dot within the dash item - margin-bottom: $dash_padding + $dash_edge_offset - 3px; // 3px = size of dot (5px) subtracted from its translationY from appDisplay.js + // margin-bottom: $dash_padding + $dash_edge_offset - 3px; // 3px = size of dot (5px) subtracted from its translationY from appDisplay.js + offset-y: 0; } } @@ -92,5 +95,5 @@ $dash_spacing: $base_margin * 0.5; // OSD Tooltip .dash-label { - -y-offset: $base_margin; // distance from the dash edge + -y-offset: $base_margin * 2; // distance from the dash edge }