Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: scroll for outline
Signed-off-by: Luka Trovic <[email protected]>
  • Loading branch information
luka-nextcloud authored and backportbot-nextcloud[bot] committed Apr 12, 2023
commit 7277e185e7b5c9cf9ef88d0a1f892899508c80c4
5 changes: 5 additions & 0 deletions src/components/Editor/EditorOutline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ export default {
padding: 0 10px 10px 10px;
position: fixed;
overflow: auto;
// 204px = 50px nc header + 60px collectives titlebar + 44px menubar + 50px bottom margin
max-height: calc(100% - 204px);

&-mobile {
box-shadow: 8px 0 17px -19px var(--color-box-shadow);
Expand All @@ -68,6 +70,9 @@ export default {
&__header {
margin: 0;
position: sticky;
top: 0;
z-index: 1;
background-color: var(--color-main-background);
padding: 0.6em 0.6em 0.6em 0;
display: flex;
align-items: center;
Expand Down
1 change: 1 addition & 0 deletions src/components/Editor/TableOfContents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export default {
overflow: hidden;
white-space: nowrap;
animation: initialPadding calc(var(--animation-duration) * 2);
width: calc(100% - var(--padding-left));

a:hover {
color: var(--color-primary-hover);
Expand Down