Skip to content

Commit

Permalink
Merge pull request #4039 from nextcloud/backport/3999/stable25
Browse files Browse the repository at this point in the history
[stable25] fix: scroll for outline
  • Loading branch information
mejo- authored Apr 12, 2023
2 parents 2dfa82b + aea3d14 commit f46801b
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 15 deletions.
4 changes: 2 additions & 2 deletions js/editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-files.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-files.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-public.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-text.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-text.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/text-viewer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text-viewer.js.map

Large diffs are not rendered by default.

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

0 comments on commit f46801b

Please sign in to comment.