diff --git a/browser/components/urlbar/UrlbarInput.jsm b/browser/components/urlbar/UrlbarInput.jsm index 5108834ab906..273911930571 100644 --- a/browser/components/urlbar/UrlbarInput.jsm +++ b/browser/components/urlbar/UrlbarInput.jsm @@ -866,7 +866,6 @@ class UrlbarInput { } this.textbox.style.setProperty("--urlbar-width", px(inputRect.width)); - this.textbox.style.setProperty("--urlbar-height", px(inputRect.height)); let toolbarHeight = getBoundsWithoutFlushing( this.textbox.closest("toolbar") diff --git a/browser/themes/shared/urlbar-searchbar.inc.css b/browser/themes/shared/urlbar-searchbar.inc.css index 1457da959729..05318ffbbd79 100644 --- a/browser/themes/shared/urlbar-searchbar.inc.css +++ b/browser/themes/shared/urlbar-searchbar.inc.css @@ -92,15 +92,18 @@ margin-top: -@urlbarBreakoutVerticalExtend@; margin-inline-start: -@urlbarBreakoutHorizontalExtend@; width: calc(var(--urlbar-width) + 2 * @urlbarBreakoutHorizontalExtend@); + min-height: calc(var(--urlbar-toolbar-height) + 2 * @urlbarBreakoutVerticalExtend@); + padding: calc(3px + @urlbarBreakoutVerticalExtend@) 0; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); } +#urlbar[breakout][open="true"] { + padding-bottom: 0; +} + #urlbar[breakout] > #urlbar-input-container { - box-sizing: padding-box; - height: calc(var(--urlbar-toolbar-height) + 2 * @urlbarBreakoutVerticalExtend@ - 2px /* urlbar border */); - width: 100%; - padding-block: calc(@urlbarBreakoutVerticalExtend@ + (var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2); padding-inline: @urlbarBreakoutHorizontalExtend@; + width: 100%; } #urlbar:not(.hidden-focus):-moz-lwtheme[focused="true"],