[Posts] Fix day/week/month not line-breaking on the popular page

This previously had whitespace that I unintentionally removed. This also has the unintentional sideeffect
of not breaking up individual prev/scale/next links which I see as an improvement.

Remove a margin override for the first entry, this wasn't properly centered for some reason.
Still not quite there but much better now.
This commit is contained in:
Earlopain 2024-02-28 20:13:12 +01:00
parent 74e3286779
commit c111421303
No known key found for this signature in database
GPG Key ID: 48860312319ADF61
2 changed files with 2 additions and 6 deletions

View File

@ -434,11 +434,7 @@ div#c-popular {
}
.period {
margin: 0 5em;
&:first-child {
margin-left: 0;
}
margin: 0 4.75em;
}
}

View File

@ -89,7 +89,7 @@ module PostSetPresenters
def nav_links(template)
template.tag.p(id: "popular-nav-links") do
template.safe_join(%w[day week month].map { |scale| nav_links_for_scale(template, scale) })
template.safe_join(%w[day week month].map { |scale| nav_links_for_scale(template, scale) }, " ")
end
end