From b68981a12e05223eb1671ec7dac6668fd327f2f9 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 2 Dec 2024 21:30:51 +0200 Subject: [PATCH] style(next): full width preview for code notes --- src/public/stylesheets/theme-next.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/public/stylesheets/theme-next.css b/src/public/stylesheets/theme-next.css index d7824322a..f25738e93 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;