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

Unified Diff: chrome/browser/resources/md_history/side_bar.html

Issue 2412003002: MD History: Fix overlapping of sidebar footer in very short windows (Closed)
Patch Set: Layout tweaks Created 4 years, 2 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/md_history/side_bar.html
diff --git a/chrome/browser/resources/md_history/side_bar.html b/chrome/browser/resources/md_history/side_bar.html
index 7dbcc88b3998d10caf2df97a44f34a8e64bad489..9a36dbfda6e0ad31d39a522962979ea50e0e65b0 100644
--- a/chrome/browser/resources/md_history/side_bar.html
+++ b/chrome/browser/resources/md_history/side_bar.html
@@ -11,14 +11,21 @@
<template>
<style include="shared-style">
:host {
- display: block;
+ display: flex;
+ flex-direction: column;
lshang 2016/10/12 05:15:29 nit: There is only one single iron-selector elemen
tsergeant 2016/10/12 06:06:45 Done.
height: 100%;
- padding-top: 5px;
+ overflow-x: hidden;
+ overflow-y: auto;
width: var(--side-bar-width);
}
+ :host([drawer]) {
+ height: calc(100% - var(--toolbar-height));
lshang 2016/10/12 05:15:29 nit: could this be calc(100% - var(|height of draw
tsergeant 2016/10/12 06:06:45 As discussed, I'm leaving this as-is without renam
+ }
+
div.separator {
background-color: rgba(0, 0, 0, 0.08);
+ flex-shrink: 0;
height: 1px;
margin: 8px 0;
}
@@ -40,6 +47,10 @@
-webkit-user-select: none;
background-color: transparent;
color: #5a5a5a;
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ padding-top: 5px;
lshang 2016/10/12 05:15:29 nit: margins between "Tabs from other devices/Clea
tsergeant 2016/10/12 06:06:45 I've set it to 8px, which matches Settings
}
iron-selector > a {
@@ -59,22 +70,17 @@
iron-selector > a.iron-selected {
color: var(--google-blue-500);
- font-weight: 500;
+ }
+
+ #spacer {
+ flex: 1;
}
#footer {
- bottom: 0;
color: var(--paper-grey-600);
- position: absolute;
width: var(--side-bar-width);
}
- :host([drawer]) #footer {
- /* This compensates the 120px by which app-drawer protrudes under
- * the viewport. */
- bottom: 120px;
- }
-
#footer-text {
-webkit-padding-end: 16px;
-webkit-padding-start: 24px;
@@ -108,6 +114,7 @@
<iron-icon icon="cr:open-in-new"></iron-icon>
<paper-ripple id="cbd-ripple"></paper-ripple>
</a>
+ <div id="spacer"></div>
<div id="footer" hidden="[[!showFooter]]">
<div class="separator"></div>
<div id="footer-text">$i18nRaw{sidebarFooter}</div>

Powered by Google App Engine
This is Rietveld 408576698