Skip to content

Commit

Permalink
Fix list item spacing bug on Firefox (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis authored Dec 17, 2024
1 parent 9bc88f4 commit c5fcbb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/proud-apricots-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Fixes a list item spacing issue where line break elements (`<br>`) could receive a margin, breaking layout in Firefox
2 changes: 1 addition & 1 deletion packages/starlight/style/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

.sl-markdown-content
li
> :last-child:not(li, ul, ol):not(a, strong, em, del, span, input, :where(.not-content *)) {
> :last-child:not(li, ul, ol, a, strong, em, del, span, input, code, br, :where(.not-content *)) {
margin-bottom: 1.25rem;
}

Expand Down

0 comments on commit c5fcbb3

Please sign in to comment.