Skip to content

Commit 4703291

Browse files
committed
refactor: optimize pre styles by consolidating CSS properties and adjusting line height
1 parent a877c95 commit 4703291

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/styles/app.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ button {
341341
/* https://github.com/shikijs/twoslash/tree/main/packages/remark-shiki-twoslash#plugin-setup */
342342
pre {
343343
/* All code samples get a grey border, twoslash ones get a different color */
344-
@apply text-black p-2;
345-
@apply overflow-x-auto relative leading-tight;
344+
@apply text-black overflow-x-auto relative leading-tight;
346345
}
347346
pre.shiki {
348347
overflow-x: auto;
@@ -370,7 +369,7 @@ pre.shiki div.highlight {
370369
background-color: #f1f8ff;
371370
}
372371
pre.shiki div.line {
373-
min-height: 1rem;
372+
min-height: auto;
374373
}
375374

376375
/** Don't show the language identifiers */

0 commit comments

Comments
 (0)