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 cbf080a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/PageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ 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%;
}

Expand Down Expand Up @@ -471,6 +471,7 @@ li.toggle-button.selected {
}

.page-list {
overflow-y: auto;
display: flex;
flex-direction: column;
flex-grow: 1;
Expand All @@ -497,7 +498,7 @@ li.toggle-button.selected {

position: sticky;
// landing page + 8px margin-bottom
top: calc(var(--landing-page-height));
top: var(--landing-page-height);
z-index: 1;
background-color: var(--color-main-background);
border-bottom: 4px solid var(--color-main-background);
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 cbf080a

Please sign in to comment.