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

Unified Diff: chrome/browser/resources/settings/settings_shared_css.html

Issue 2863973004: [MD settings] .settings-row.wide and reduce use of flex layout (Closed)
Patch Set: comment change Created 3 years, 7 months 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
Index: chrome/browser/resources/settings/settings_shared_css.html
diff --git a/chrome/browser/resources/settings/settings_shared_css.html b/chrome/browser/resources/settings/settings_shared_css.html
index dfcba57e1a90770fefe14754f2bdaf2cb75c3d4f..d3c060bed0c11454731d4c70775c161c756403ea 100644
--- a/chrome/browser/resources/settings/settings_shared_css.html
+++ b/chrome/browser/resources/settings/settings_shared_css.html
@@ -315,11 +315,18 @@
flex: auto;
}
+ /* For grouping elements with common flex options. */
.settings-row {
align-items: center;
display: flex;
flex-direction: row;
max-width: 100%;
+ min-width: 0; /* Workaround for text elision in sub-elements. */
+ }
+
+ /* Expand to fill-up available space. */
+ .settings-row.wide {
+ flex: 1;
}
.no-outline,

Powered by Google App Engine
This is Rietveld 408576698