Skip to content

Commit b0e9a5c

Browse files
authored
Fix error and error-behind css classes out-of-sync (#3400)
1 parent c65adad commit b0e9a5c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/typescriptlang-org/src/templates/markdown-twoslash.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,15 @@ pre .error {
165165
position: absolute;
166166
background-color: #fee;
167167
border-left: 2px solid #bf1818;
168-
margin-right: -2px;
169-
/* Give the space to the error code */
170168
display: flex;
171169
align-items: center;
172170
color: black;
171+
padding-left: 12px;
172+
padding-right: 8px;
173+
}
174+
175+
pre .error > span {
176+
margin-right: 12px;
173177
}
174178

175179
pre .error .code {

0 commit comments

Comments
 (0)