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 <chrng8@gmail.com>
  • Loading branch information
Pytal committed Aug 13, 2024
1 parent 4e95ec0 commit a113fb2
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit a113fb2

Please sign in to comment.