diff --git a/apps/client/src/stylesheets/relation_map.css b/apps/client/src/stylesheets/relation_map.css index 67444e5aa..3f371d8e2 100644 --- a/apps/client/src/stylesheets/relation_map.css +++ b/apps/client/src/stylesheets/relation_map.css @@ -5,7 +5,6 @@ .note-detail-relation-map { height: 100%; overflow: hidden !important; - padding: 10px; position: relative; } diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css index 9b04b1428..fa28df6e2 100644 --- a/apps/client/src/stylesheets/style.css +++ b/apps/client/src/stylesheets/style.css @@ -2516,7 +2516,7 @@ footer.webview-footer button { transform: rotate(180deg); } -/* CK Edito */ +/* CK Editor */ /* Insert text snippet: limit the width of the listed items to avoid overly long names */ :root body.desktop div.ck-template-form li.ck-list__item .ck-template-form__text-part > span { @@ -2546,4 +2546,18 @@ iframe.print-iframe { .excalidraw.theme--dark canvas { --theme-filter: invert(100%) hue-rotate(180deg); +} + +/* Scrolling container */ + +.scrolling-container:has(> :is(.note-detail.full-height, .note-list-widget.full-height)) { + display: flex; + flex-direction: column; +} + +.scrolling-container > .note-detail.full-height { + position: relative; + flex-grow: 1; + width: 100%; + height: 100%; } \ No newline at end of file diff --git a/apps/client/src/widgets/collections/NoteList.css b/apps/client/src/widgets/collections/NoteList.css index 21aed3ac5..f8e5ae14e 100644 --- a/apps/client/src/widgets/collections/NoteList.css +++ b/apps/client/src/widgets/collections/NoteList.css @@ -6,7 +6,7 @@ contain: none !important; } -body.prefers-centered-content .note-list-widget { +body.prefers-centered-content .note-list-widget:not(.full-height) { /* Horizontally center the widget in its parent when the "Keep content centered" option is on */ margin-inline: auto; } diff --git a/apps/client/src/widgets/note_detail.ts b/apps/client/src/widgets/note_detail.ts index b0dd8db54..afb1c2475 100644 --- a/apps/client/src/widgets/note_detail.ts +++ b/apps/client/src/widgets/note_detail.ts @@ -48,10 +48,6 @@ const TPL = /*html*/` /* Horizontally center the widget in its parent when the "Keep content centered" option is on */ margin-inline: auto; } - - .note-detail.full-height { - height: 100%; - } `; diff --git a/apps/client/src/widgets/type_widgets/canvas.ts b/apps/client/src/widgets/type_widgets/canvas.ts index bc619acea..d31bda9dd 100644 --- a/apps/client/src/widgets/type_widgets/canvas.ts +++ b/apps/client/src/widgets/type_widgets/canvas.ts @@ -13,6 +13,10 @@ import protected_session_holder from "../../services/protected_session_holder.js const TPL = /*html*/`