Skip to content

Commit 7abaee8

Browse files
committed
fix(files): Ensure scrolled file list does not leak through file filters
1. when scrolling the file list should not be visible behind the filters 2. on mobile we need to remove the padding of the filters to ensure they are accessible Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 36130ac commit 7abaee8

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

apps/files/src/components/FilesListVirtual.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,10 @@ export default defineComponent({
374374
// Pinned on top when scrolling above table header
375375
position: sticky;
376376
top: 0;
377-
// fix size and background
377+
// ensure there is a background to hide the file list on scroll
378378
background-color: var(--color-main-background);
379+
z-index: 10;
380+
// fixed the size
379381
padding-inline: var(--row-height) var(--default-grid-baseline, 4px);
380382
height: var(--fixed-top-position);
381383
width: 100%;
@@ -698,6 +700,14 @@ export default defineComponent({
698700
}
699701
}
700702
}
703+
704+
@media screen and (max-width: 512px) {
705+
.files-list :deep(.files-list__filters) {
706+
// Reduce padding on mobile
707+
padding-inline: var(--default-grid-baseline, 4px);
708+
}
709+
}
710+
701711
</style>
702712

703713
<style lang="scss">

0 commit comments

Comments
 (0)