Skip to content

Commit

Permalink
Merge pull request #47207 from nextcloud/fix/sticky-nav-item
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Aug 14, 2024
2 parents a503125 + 0c0ba5f commit 73c8891
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion apps/files/src/views/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<NcAppNavigationSearch v-model="searchQuery" :label="t('files', 'Filter filenames…')" />
</template>
<template #default>
<NcAppNavigationList :aria-label="t('files', 'Views')">
<NcAppNavigationList class="files-navigation__list"
:aria-label="t('files', 'Views')">
<FilesNavigationItem :views="viewMap" />
</NcAppNavigationList>

Expand Down Expand Up @@ -225,6 +226,10 @@ export default defineComponent({
}
.files-navigation {
&__list {
height: 100%; // Fill all available space for sticky views
}
:deep(.app-navigation__content > ul.app-navigation__list) {
will-change: scroll-position;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

0 comments on commit 73c8891

Please sign in to comment.