Skip to content

Commit

Permalink
client: Fix display of full-screen notes
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Oct 21, 2024
1 parent 7f27ca6 commit f798b63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/public/app/widgets/containers/scrolling_container.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export default class ScrollingContainer extends Container {
this.css('overflow', 'auto');
this.css('scroll-behavior', 'smooth');
this.css('position', 'relative');
this.css('display', 'flex');
this.css('flex-direction', 'column');
}

setNoteContextEvent({noteContext}) {
Expand Down
3 changes: 2 additions & 1 deletion src/public/app/widgets/note_detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ const TPL = `
.note-detail {
font-family: var(--detail-font-family);
font-size: var(--detail-font-size);
flex-grow: 1;
}
.note-detail.full-height {
height: 100%;
contain: size !important;
}
</style>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/public/app/widgets/note_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const TPL = `
<style>
.note-list-widget {
min-height: 0;
overflow: auto;
}
.note-list-widget .note-list {
Expand Down

0 comments on commit f798b63

Please sign in to comment.