Commit 50b42132 authored by Daniel Hosseinian's avatar Daniel Hosseinian Committed by Commit Bot

PDF Viewer Update: Align thumbnails for sidenav icons

If the sidenav icons are shown, add some padding to the right of the
thumbnails.

Before and after photos: https://imgur.com/a/a6T0DD2

Bug: 652400
Change-Id: I15039ab0b672a3e6fac370f10278c1a45f890553
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2434094
Commit-Queue: Daniel Hosseinian <dhoss@chromium.org>
Reviewed-by: default avatarJohn Lee <johntlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812231}
parent b1692f21
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
overflow-x: hidden; overflow-x: hidden;
} }
#icons:not([hidden]) + #content {
--viewer-thumbnail-bar-padding-inline-end: 28px;
}
.selected cr-icon-button { .selected cr-icon-button {
--cr-icon-button-fill-color: var(--sidenav-selected-tab-color); --cr-icon-button-fill-color: var(--sidenav-selected-tab-color);
} }
......
<style> <style>
:host(:focus) {
outline: none;
}
#thumbnails { #thumbnails {
box-sizing: border-box; box-sizing: border-box;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
padding: 24px 0; padding: 24px 0;
padding-inline-end: var(--viewer-thumbnail-bar-padding-inline-end);
text-align: center; text-align: center;
} }
......
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