-
-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide post footer when empty #2926
Conversation
Why not just not draw the footer in the DOM, instead of hiding it with CSS? |
I thought about that but assumed it'd be more breaking than just hiding the footer in CSS. If someone was doing weird stuff, they could override the style if needed to force it to show. |
90d20c1
to
837fa83
Compare
@SychO9 Seems like your suggestion worked fine! Using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Changes proposed in this pull request:
This PR changes the post footer to hide itself when it contains no items.
Currently, even if the footer has no items, it still exists and has margin, resulting in unexpected and weird white space at the bottom of posts.
In the screenshots below, notice the non-even spacing on the EventPost and on the whitespace below the post actions on the CommentPost.
I believe we previously had a more "hacky" way of doing this, by setting the footer bottom margin to 0 for Event Posts, but this fix will affect all posts instead of just Event Posts.
Reviewers should focus on:
This shouldn't be breaking (unless extensions are adding content to footers in hacky ways which we should probably discourage anyway).
As long as extensions are using the ItemList to add items to the footer, this class shouldn't end up being added.
Screenshot
Before:
After:
Confirmed
Backend changes: tests are green (runcomposer test
).