Skip to content

Commit

Permalink
fix: preserve white space wrap (#258)
Browse files Browse the repository at this point in the history
* fix: preserve white space wrap

* Add changeset

---------

Co-authored-by: Puru Vijay <47742487+PuruVJ@users.noreply.github.com>
Co-authored-by: Puru <devpuruvj@gmail.com>
  • Loading branch information
3 people committed Dec 7, 2023
1 parent 2f5c1d1 commit f2887a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tender-dolphins-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/site-kit': patch
---

fix: preserve white space wrap on `<code>`
1 change: 1 addition & 0 deletions packages/site-kit/src/lib/styles/text.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

/* code */
.text :where(code) {
white-space: pre-wrap;
padding: 0.2rem 0.4rem;
margin: 0 0.2rem;
top: -0.1rem;
Expand Down

0 comments on commit f2887a7

Please sign in to comment.