fix(layout): weird title in full-width & attachments

This commit is contained in:
Elian Doran 2025-12-10 11:56:34 +02:00
parent 42fc128f97
commit 737711e5eb
No known key found for this signature in database

View File

@ -29,17 +29,18 @@ body.desktop .note-title-widget input.note-title {
font-size: 180%;
}
body.experimental-feature-new-layout .title-row,
body.experimental-feature-new-layout .title-details {
body.experimental-feature-new-layout {
.title-row,
.title-details {
max-width: var(--max-content-width);
}
}
body.experimental-feature-new-layout .title-row {
.title-row {
margin-top: 2em;
margin-left: 12px;
}
}
body.experimental-feature-new-layout .title-details {
.title-details {
margin-top: 0;
contain: none;
padding: 0;
@ -50,9 +51,17 @@ body.experimental-feature-new-layout .title-details {
margin: 0;
list-style-type: none;
margin-bottom: 2em;
}
}
body.experimental-feature-new-layout.prefers-centered-content .title-row,
body.experimental-feature-new-layout.prefers-centered-content .title-details {
.scrolling-container:has(> :is(.note-detail.full-height, .note-list-widget.full-height)) {
.title-row,
.title-details {
width: 100%;
}
}
&.prefers-centered-content .title-row,
&.prefers-centered-content .title-details {
margin-inline: auto;
}
}