mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-13 10:35:47 +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-width: 230px;
|
||||||
--sidebar-min-width: min-content;
|
--sidebar-min-width: min-content;
|
||||||
--sidebar-max-width: 50vw;
|
--sidebar-max-width: 50vw;
|
||||||
|
--sidebar-block-padding: 8px;
|
||||||
|
|
||||||
--text-color: light-dark(#15141a, #fbfbfe);
|
--text-color: light-dark(#15141a, #fbfbfe);
|
||||||
--button-fg: var(--text-color);
|
--button-fg: var(--text-color);
|
||||||
@ -176,9 +177,9 @@
|
|||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
inset-block-start: calc(100% + var(--sidebar-block-padding));
|
||||||
height: calc(
|
height: calc(
|
||||||
var(--viewer-container-height) - var(--toolbar-height) -
|
var(--viewer-container-height) - 2 * var(--sidebar-block-padding)
|
||||||
var(--doorhanger-height)
|
|
||||||
);
|
);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user