From fe7d25bba99cfa36bb5a5c0304d36a3a70a3acf1 Mon Sep 17 00:00:00 2001 From: Florian Egger Date: Mon, 13 Jul 2026 14:34:22 +0200 Subject: [PATCH] Fix CSS margin/width shorthand compatibility in shell widget Expand shorthand `margin` and `width` properties for `.section` and `.brightness-levelbar` to individual longhand properties, likely to avoid issues with older GTK/CSS parsing. --- pinenote-shell/style.css | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pinenote-shell/style.css b/pinenote-shell/style.css index c4b216c..637cf14 100644 --- a/pinenote-shell/style.css +++ b/pinenote-shell/style.css @@ -30,7 +30,10 @@ window.pinenote-shell-widget .header { window.pinenote-shell-widget .section { background-color: rgba(255, 255, 255, 0.05); padding: 16px; - margin: 8px 16px; + margin-top: 8px; + margin-bottom: 8px; + margin-left: 16px; + margin-right: 16px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); } @@ -44,8 +47,12 @@ window.pinenote-shell-widget .title { window.pinenote-shell-widget .brightness-levelbar { min-height: 200px; - width: 20px; - margin: 0 auto; + min-width: 20px; + max-width: 20px; + margin-top: 0; + margin-bottom: 0; + margin-left: auto; + margin-right: auto; background-color: rgba(255, 255, 255, 0.05); border-radius: 10px; }