style(next): improve code block style

This commit is contained in:
Elian Doran 2025-01-07 19:10:33 +02:00
parent b81c15c84c
commit 2e1b472500
No known key found for this signature in database

View File

@ -7,7 +7,8 @@
*/ */
.attachment-content-wrapper pre, .attachment-content-wrapper pre,
.ck-content pre { .ck-content pre,
.ck-mermaid__editing-view {
border: 0; border: 0;
border-radius: 6px; border-radius: 6px;
box-shadow: var(--code-block-box-shadow); box-shadow: var(--code-block-box-shadow);
@ -33,9 +34,10 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
} }
.attachment-content-wrapper pre code, .attachment-content-wrapper pre code,
.ck-content pre code { .ck-content pre code,
.ck-mermaid__editing-view {
display: block; display: block;
padding: 1em; padding: 1em !important;
overflow: auto; overflow: auto;
} }