Bug 1632073 - [RTL] Fix the url padding when 2-line layout is active r=dao

Differential Revision: https://phabricator.services.mozilla.com/D73330
This commit is contained in:
Itiel 2020-04-30 19:34:41 +00:00
Родитель 64226c82d8
Коммит 91da2c25d2
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -122,7 +122,13 @@
} }
.urlbarView-results[wrap] > .urlbarView-row[has-url] > .urlbarView-row-inner > .urlbarView-url { .urlbarView-results[wrap] > .urlbarView-row[has-url] > .urlbarView-row-inner > .urlbarView-url {
margin-top: 2px; margin-top: 2px;
padding-inline-start: calc(@urlbarViewItemInlinePadding@ + @identityBoxMarginInlineEnd@ + /* favicon */ 16px); }
/* urlbarView-url is forced to be LTR for RTL locales, so set the padding based on the browser's directionality. */
.urlbarView-results[wrap] > .urlbarView-row[has-url] > .urlbarView-row-inner > .urlbarView-url:-moz-locale-dir(ltr) {
padding-left: calc(@urlbarViewItemInlinePadding@ + @identityBoxMarginInlineEnd@ + /* favicon */ 16px);
}
.urlbarView-results[wrap] > .urlbarView-row[has-url] > .urlbarView-row-inner > .urlbarView-url:-moz-locale-dir(rtl) {
padding-right: calc(@urlbarViewItemInlinePadding@ + @identityBoxMarginInlineEnd@ + /* favicon */ 16px);
} }
/* Note: switchtab entries show the url only in override mode, /* Note: switchtab entries show the url only in override mode,
remotetab only when selected or :hover */ remotetab only when selected or :hover */