mirror of
https://github.com/dergigi/boris.git
synced 2026-01-27 10:44:46 +01:00
fix(ui): make sidebar and reader scroll independently
- Remove position: sticky from sidebar - Set fixed height on two-pane container (calc(100vh - 4rem)) - Add overflow-y: auto to both sidebar and main panes - Each pane now scrolls independently without affecting the other - Fix issue where bookmark bar was 'stuck' with long articles
This commit is contained in:
@@ -403,7 +403,7 @@ body {
|
||||
display: grid;
|
||||
grid-template-columns: 360px 1fr;
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
height: calc(100vh - 4rem);
|
||||
transition: grid-template-columns 0.3s ease;
|
||||
}
|
||||
|
||||
@@ -412,13 +412,13 @@ body {
|
||||
}
|
||||
|
||||
.pane.sidebar {
|
||||
position: sticky;
|
||||
top: 1rem;
|
||||
align-self: start;
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.pane.main {
|
||||
min-height: 60vh;
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.reader {
|
||||
|
||||
Reference in New Issue
Block a user