Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Unified Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html

Issue 2508043002: MD WebUI: Fix appearance of toolbar title in certain languages (Closed)
Patch Set: Rearrange padding to simplify calc(), add comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_history/app.vulcanized.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
diff --git a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
index 35ac7c844821bf554896758f51cfce4e161e0aef..e6c63f19b4532a459f2aa13d779adab61bfb8fef 100644
--- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
+++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
@@ -16,6 +16,7 @@
h1 {
-webkit-margin-start: 6px;
+ -webkit-padding-end: 2px;
flex: 1;
font-size: 123%;
font-weight: 400;
@@ -25,8 +26,9 @@
}
#leftContent {
- -webkit-margin-start: 18px;
+ -webkit-padding-start: 18px;
align-items: center;
+ box-sizing: border-box;
display: flex;
position: absolute;
transition: opacity 100ms;
@@ -57,7 +59,9 @@
}
:host(:not([narrow_])) #leftContent {
- max-width: calc((100% - var(--cr-toolbar-field-width) - 18px) / 2);
+ /* The amount of space left of the search field:
+ (width of window - width of search field) / 2. */
+ max-width: calc((100% - var(--cr-toolbar-field-width)) / 2);
@apply(--cr-toolbar-left-content-wide);
}
« no previous file with comments | « chrome/browser/resources/md_history/app.vulcanized.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698