From a9201944a95cc13f6bd78e1f30d2be669bc85ece Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 24 Mar 2023 11:43:24 +0200 Subject: [PATCH] selected_tab_as_urlbar: horizontally center urlbarview to window --- chrome/selected_tab_as_urlbar.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome/selected_tab_as_urlbar.css b/chrome/selected_tab_as_urlbar.css index 216cd98..1d1a26e 100644 --- a/chrome/selected_tab_as_urlbar.css +++ b/chrome/selected_tab_as_urlbar.css @@ -24,6 +24,7 @@ See the above repository for updates as well as full license text. */ box-shadow: none !important; outline: none !important; } +#urlbar-container{ position: static !important; } .urlbarView{ background: var(--toolbar-field-focus-background-color); border: 1px solid var(--toolbar-field-focus-border-color) !important; @@ -31,8 +32,9 @@ See the above repository for updates as well as full license text. */ padding: 6px; border-radius: 6px; box-shadow: 0 0 26px #444; - left: 50vw; - margin-left: -50% !important; + left:50vw; + width: max(70vw,600px) !important; + transform: translateX(-50%) !important; } .tabbrowser-tab[selected][fadein]{ max-width: 100vw !important; min-width: 200px !important }