diff --git a/packages/typescriptlang-org/src/templates/markdown-twoslash.scss b/packages/typescriptlang-org/src/templates/markdown-twoslash.scss index 9c7067a5345d..3bef2d8728e8 100644 --- a/packages/typescriptlang-org/src/templates/markdown-twoslash.scss +++ b/packages/typescriptlang-org/src/templates/markdown-twoslash.scss @@ -165,11 +165,15 @@ pre .error { position: absolute; background-color: #fee; border-left: 2px solid #bf1818; - margin-right: -2px; - /* Give the space to the error code */ display: flex; align-items: center; color: black; + padding-left: 12px; + padding-right: 8px; +} + +pre .error > span { + margin-right: 12px; } pre .error .code {