Skip to content

Commit 24933ed

Browse files
committed
fix code block style
1 parent 9875ef1 commit 24933ed

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

frontend/packages/editor/src/blocknote/core/extensions/Blocks/nodes/Block.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ NESTED BLOCKS
315315

316316
/* CODE BLOCK ROOT */
317317
.blockContent[data-content-type='code-block'] {
318-
background-color: var(--muted);
318+
background-color: rgba(0, 0, 0, 0.05);
319319
border-radius: 6px;
320-
padding: 10px 16px;
320+
/* padding: 10px 16px; */
321321
display: block;
322322
box-sizing: border-box;
323323
width: 100%;

frontend/packages/editor/src/editor.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ ul[data-list-type='Unordered']
563563
position: absolute;
564564
top: 0;
565565
left: 0;
566-
width: calc(100% + 16px);
566+
width: calc(100% + 32px);
567567
height: calc(100% + 8px);
568568
background-color: var(--color-background);
569569
border-radius: 6px;
@@ -583,3 +583,7 @@ ul[data-list-type='Unordered']
583583
opacity: 1;
584584
}
585585
}
586+
587+
.dark [data-content-type='code-block'] {
588+
background-color: rgba(0, 0, 0, 0.5) !important;
589+
}

0 commit comments

Comments
 (0)