Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit f2887a7

Browse files
zheeengPuruVJ
andauthored
fix: preserve white space wrap (#258)
* fix: preserve white space wrap * Add changeset --------- Co-authored-by: Puru Vijay <[email protected]> Co-authored-by: Puru <[email protected]>
1 parent 2f5c1d1 commit f2887a7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/tender-dolphins-suffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/site-kit': patch
3+
---
4+
5+
fix: preserve white space wrap on `<code>`

packages/site-kit/src/lib/styles/text.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
/* code */
2424
.text :where(code) {
25+
white-space: pre-wrap;
2526
padding: 0.2rem 0.4rem;
2627
margin: 0 0.2rem;
2728
top: -0.1rem;

0 commit comments

Comments
 (0)