diff --git a/Changelog.md b/Changelog.md index bd7fc5bc3..2b7ae726b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -45,6 +45,7 @@ bind to an UNIX socket at `unix:tmp/diaspora.sock`. Please change your local ## Refactor * Update perfect-scrollbar [#6085](https://github.com/diaspora/diaspora/pull/6085) +* Remove top margin for first heading in a post [#6110](https://github.com/diaspora/diaspora/pull/6110) ## Bug fixes * Precompile facebox images [#6105](https://github.com/diaspora/diaspora/pull/6105) diff --git a/app/assets/stylesheets/markdown-content.scss b/app/assets/stylesheets/markdown-content.scss index 4d7d8e895..9caacef44 100644 --- a/app/assets/stylesheets/markdown-content.scss +++ b/app/assets/stylesheets/markdown-content.scss @@ -8,4 +8,10 @@ &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } + + h1, h2, h3, h4, h5, h6 { + &:first-child { + margin-top: 0; + } + } }