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> |