From 9a66b9e88fd4fa7415579239021b7127a1ffe92a Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Mon, 28 Nov 2022 09:01:48 +0200 Subject: [PATCH] status_inside_urlbar: pack statuspanel label to center when asked to Loading status label is rendered as pseudo-element in Firefox 109 and this change is necessary to correctly center the label in that case. --- chrome/status_inside_urlbar.css | 5 ++++- chrome/status_inside_urlbar_v2.css | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/chrome/status_inside_urlbar.css b/chrome/status_inside_urlbar.css index 17d19f0..275072c 100644 --- a/chrome/status_inside_urlbar.css +++ b/chrome/status_inside_urlbar.css @@ -108,6 +108,9 @@ As a workaround, the -moz-element background image is removed somewhat often whi /* Center the statuspanel text. This might be useful with centered urlbar text */ /* -#statuspanel-label{ text-align: center } +#statuspanel-label{ + text-align: center; + -moz-box-pack: center; +} .urlbar-input-box::after{ background-position-x: center !important; } */ diff --git a/chrome/status_inside_urlbar_v2.css b/chrome/status_inside_urlbar_v2.css index 72c0a74..81d6113 100644 --- a/chrome/status_inside_urlbar_v2.css +++ b/chrome/status_inside_urlbar_v2.css @@ -70,6 +70,9 @@ As a workaround, the -moz-element background image is removed somewhat often whi /* Center the statuspanel text. This might be useful with centered urlbar text */ /* -#statuspanel-label{ text-align: center } -#urlbar::before{ background-position-x: center !important; } +#statuspanel-label{ + text-align: center; + -moz-box-pack: center; +} +.urlbar-input-box::after{ background-position-x: center !important; } */