Merge pull request #13923 from overleaf/td-review-panel-non-sticky-toolbar-nav

Make toolbar and nav non-sticky in React review panel overview mode

GitOrigin-RevId: feb2950698512120a676a597f0edfa7ba615f934
This commit is contained in:
Tim Down 2023-07-20 11:52:43 +01:00 committed by Copybot
parent a88589b7b7
commit 752ad8870d
2 changed files with 15 additions and 8 deletions

View file

@ -56,7 +56,12 @@ function CurrentFileContainer() {
}, [setEntryHover])
return (
<Container classNames={{ 'rp-collapsed-displaying-entry': entryHover }}>
<Container
classNames={{
'rp-collapsed-displaying-entry': entryHover,
'rp-current-file-container': true,
}}
>
<div className="review-panel-tools">
<Toolbar />
<Nav />

View file

@ -1244,14 +1244,16 @@ button when (@is-overleaf-light = true) {
padding: 0;
}
.review-panel-toolbar {
position: sticky;
top: 0;
}
&.rp-current-file-container {
.review-panel-toolbar {
position: sticky;
top: 0;
}
.rp-nav {
position: sticky;
bottom: 0;
.rp-nav {
position: sticky;
bottom: 0;
}
}
.rp-entry-list-react {