Skip to content

Commit

Permalink
fix(files): Fix non-sticky sticky views in files nav
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
Pytal authored and nextcloud-command committed Aug 14, 2024
1 parent a503125 commit 0c0ba5f
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 0c0ba5f

Please sign in to comment.