Skip to content

Commit 79942b7

Browse files
committed
Fix the page sidebar height
It has to be the viewer height but with a padding of 8px.
1 parent e5656e4 commit 79942b7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

web/views_manager.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
--sidebar-width: 230px;
5959
--sidebar-min-width: min-content;
6060
--sidebar-max-width: 50vw;
61+
--sidebar-block-padding: 8px;
6162

6263
--text-color: light-dark(#15141a, #fbfbfe);
6364
--button-fg: var(--text-color);
@@ -176,9 +177,9 @@
176177
padding-bottom: 16px;
177178
flex-direction: column;
178179
align-items: flex-start;
180+
inset-block-start: calc(100% + var(--sidebar-block-padding));
179181
height: calc(
180-
var(--viewer-container-height) - var(--toolbar-height) -
181-
var(--doorhanger-height)
182+
var(--viewer-container-height) - 2 * var(--sidebar-block-padding)
182183
);
183184
position: absolute;
184185

0 commit comments

Comments
 (0)