From 98654e5446c8acc267a4f0964c704b7294a81be2 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Mon, 27 Nov 2023 14:49:05 +0800 Subject: [PATCH] style: Don't clip scrolling folder icons until they touch the border In the absence of a fade-out it doesn't make sense to clip them sooner than that. So now we make the left and right padding equal to the border ("box-shadow") width and leave the top/bottom padding unchanged. Part-of: --- data/theme/gnome-shell-sass/widgets/_app-grid.scss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/data/theme/gnome-shell-sass/widgets/_app-grid.scss b/data/theme/gnome-shell-sass/widgets/_app-grid.scss index 3c8eda411..1231f91e1 100644 --- a/data/theme/gnome-shell-sass/widgets/_app-grid.scss +++ b/data/theme/gnome-shell-sass/widgets/_app-grid.scss @@ -41,11 +41,13 @@ $app_icon_size: 96px; .app-folder-dialog { border-radius: $modal_radius*4; background-color: $system_overlay_bg_color; - padding: $base_padding*2; - box-shadow:inset 0 0 0 1px $system_borders_color; @if $is_highcontrast { - box-shadow:inset 0 0 0 2px $hc_inset_color; + padding: $base_padding*2 2px $base_padding*2 2px; + box-shadow: inset 0 0 0 2px $hc_inset_color; + } @else { + padding: $base_padding*2 1px $base_padding*2 1px; + box-shadow: inset 0 0 0 1px $system_borders_color; } & .folder-name-container {