Skip to content

Commit 9a1a0e8

Browse files
author
Amelia Wattenberger
committed
markdown block - fix padding
1 parent 8123594 commit 9a1a0e8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: blocks/file-blocks/markdown-edit/style.css

+3-4
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ body,
100100
pre,
101101
.cm-code {
102102
background: #f6f8fa;
103-
padding: 0.6em 1em !important;
104-
margin: -0.9em -1em !important;
103+
padding: 0 1em !important;
104+
margin: 0 0 !important;
105105
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
106106
Liberation Mono, monospace;
107107
}
@@ -187,9 +187,8 @@ html body div.cm-editor .cm-line::selection {
187187
}
188188

189189
.cm-line .cm-instruction {
190-
display: none;
191190
color: rgb(175, 178, 182);
192-
padding: 0;
191+
opacity: 0.3;
193192
}
194193
.cm-copy-header .cm-instruction:first-child {
195194
display: inline-block !important;

Diff for: blocks/file-blocks/markdown-edit/theme.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const highlightStyle = HighlightStyle.define([
141141
tag: t.monospace,
142142
fontFamily:
143143
"ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",
144-
padding: "0.2em 0.4em",
144+
// padding: "0.2em 0.4em",
145145
backgroundColor: colors.activelineBg,
146146
},
147147
{

0 commit comments

Comments
 (0)