Commit 8d49b96c authored by Kyle Milka's avatar Kyle Milka Committed by Commit Bot

Fix NTP background picker when the browser is very narrow

When the browser is resized to be very, very narrow the picker should
resize to one column. At this point the option dialog will also need
to be resized and the text may now overflow.

Bug: 850338
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I06d08f15b631f9810ead7e01180aacf2a4a66c18
Reviewed-on: https://chromium-review.googlesource.com/1097461Reviewed-by: default avatarMathieu Perreault <mathp@chromium.org>
Commit-Queue: Kyle Milka <kmilka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566711}
parent b7262fef
...@@ -84,9 +84,12 @@ ...@@ -84,9 +84,12 @@
.bg-option-text { .bg-option-text {
display: inline-block; display: inline-block;
line-height: normal; line-height: normal;
overflow: hidden;
padding-left: 16px; padding-left: 16px;
text-align: center; text-align: center;
text-overflow: ellipsis;
vertical-align: middle; vertical-align: middle;
white-space: nowrap;
} }
#bg-sel-menu-overlay { #bg-sel-menu-overlay {
...@@ -122,6 +125,13 @@ ...@@ -122,6 +125,13 @@
} }
} }
@media (max-width: 356px) {
#bg-sel-menu,
#edit-bg-dialog {
width: 188px;
}
}
#bg-sel-tiles { #bg-sel-tiles {
height: 284px; height: 284px;
overflow-y: scroll; overflow-y: scroll;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment