mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
client/options/keep content centered: simplify the inner workings
This commit is contained in:
@@ -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%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user