client/options/keep content centered: simplify the inner workings

This commit is contained in:
Adorian Doran
2025-11-07 21:15:51 +02:00
parent c617c84d86
commit 9bccc72668
5 changed files with 17 additions and 16 deletions

View File

@@ -40,12 +40,15 @@ const TPL = /*html*/`
<style>
.note-detail {
max-width: var(--max-content-width); /* Inherited from .note-split */
/* Inherited from .note-split. If set to "auto" the note detail widget will be centered horizontally. */
margin-inline: var(--content-margin-inline);
font-family: var(--detail-font-family);
font-size: var(--detail-font-size);
}
body.prefers-centered-content .note-detail {
/* Horizontally center the widget in its parent when the "Keep content centered" option is on /*
margin-inline: auto;
}
.note-detail.full-height {
height: 100%;
}