mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-14 17:24:04 +02:00
Fix the page sidebar height
It has to be the viewer height but with a padding of 8px.
This commit is contained in:
parent
e5656e4303
commit
79942b7720
@ -58,6 +58,7 @@
|
||||
--sidebar-width: 230px;
|
||||
--sidebar-min-width: min-content;
|
||||
--sidebar-max-width: 50vw;
|
||||
--sidebar-block-padding: 8px;
|
||||
|
||||
--text-color: light-dark(#15141a, #fbfbfe);
|
||||
--button-fg: var(--text-color);
|
||||
@ -176,9 +177,9 @@
|
||||
padding-bottom: 16px;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
inset-block-start: calc(100% + var(--sidebar-block-padding));
|
||||
height: calc(
|
||||
var(--viewer-container-height) - var(--toolbar-height) -
|
||||
var(--doorhanger-height)
|
||||
var(--viewer-container-height) - 2 * var(--sidebar-block-padding)
|
||||
);
|
||||
position: absolute;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user