Skip to content

Commit

Permalink
fix(PageList): Make header, landing page and trash sticky again
Browse files Browse the repository at this point in the history
Fixes: #1523

Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Oct 22, 2024
1 parent 8031d84 commit d0c1136
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/PageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,14 @@ export default {

.app-content-list {
// nextcloud-vue component sets `max-height: unset` on mobile.
// Overwrite this to fix stickyness of header and rootpage.
// Overwrite this to fix stickiness of header and rootpage.
max-height: 100%;
}

.page-list-headerbar {
position: sticky;
top: 0;
z-index: 2;
display: flex;
flex-direction: row;
gap: 2px;
Expand Down Expand Up @@ -479,7 +482,7 @@ li.toggle-button.selected {

.page-list-root-page {
position: sticky;
top: 0;
top: var(--page-list-header-height);
z-index: 1;
background-color: var(--color-main-background);
margin-block-end: 8px;
Expand Down
2 changes: 2 additions & 0 deletions src/components/PageList/PageTrash.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ export default {
@import '../../css/animation.scss';

.page-trash {
position: sticky;
bottom: 0;
width: 100%;
margin-top: auto;
background-color: var(--color-main-background);
Expand Down

0 comments on commit d0c1136

Please sign in to comment.