Skip to content

Build your personal knowledge base with Trilium Notes

style(next): full width preview for code notes

Elian Doranb68981a12e05
diff --git a/src/public/stylesheets/theme-next.css b/src/public/stylesheets/theme-next.css
index d7824322a0..f25738e939 100644
--- a/src/public/stylesheets/theme-next.css
+++ b/src/public/stylesheets/theme-next.css
@@ -1089,12 +1089,14 @@ html .note-detail-editable-text :not(figure, .include-note):first-child {
* Note list
*/
.note-list .note-book-card {
+ --note-list-horizontal-padding: 22px;
+ --note-list-vertical-padding: 15px;
background-color: var(--card-background-color);
border: 1px solid var(--card-border-color) !important;
box-shadow: 2px 3px 4px var(--card-shadow-color);
border-radius: 12px;
user-select: none;
- padding: 15px 22px;
+ padding: var(--note-list-vertical-padding) var(--note-list-horizontal-padding);
margin: 5px 10px 5px 0;
}
@@ -1152,6 +1154,16 @@ html .note-detail-editable-text :not(figure, .include-note):first-child {
color: var(--active-item-text-color);
}
+.note-list-wrapper .note-book-card .note-book-content.type-code {
+ margin: 0 calc(-1 * var(--note-list-horizontal-padding));
+ margin-bottom: calc(-1 * var(--note-list-vertical-padding));
+ padding-top: 0;
+}
+
+.note-list-wrapper .note-book-card .note-book-content.type-code pre {
+ height: 100%;
+}
+
.note-list-wrapper .note-book-card .bx {
color: var(--left-pane-icon-color);
font-weight: bold;