forked from e621ng/e621ng
[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:
parent
74e3286779
commit
c111421303
@ -434,11 +434,7 @@ div#c-popular {
|
||||
}
|
||||
|
||||
.period {
|
||||
margin: 0 5em;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
margin: 0 4.75em;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user