UX: Move reply filter button on mobile (#11524)

This commit is contained in:
Penar Musaraj
2020-12-17 22:51:13 -05:00
committed by GitHub
parent 4558d91bbb
commit 2b8b252249
2 changed files with 9 additions and 2 deletions

View File

@@ -558,7 +558,11 @@ export default createWidget("post-menu", {
const repliesButton = this.attachButton("replies", attrs);
if (repliesButton) {
postControls.push(repliesButton);
if (!this.site.mobileView) {
postControls.push(repliesButton);
} else {
visibleButtons.splice(-1, 0, repliesButton);
}
}
const extraControls = applyDecorators(this, "extra-controls", attrs, state);

View File

@@ -106,9 +106,12 @@ span.badge-posts {
display: flex;
align-items: center;
.show-replies {
margin-left: auto;
display: flex;
padding: 8px;
font-size: $font-up-1;
+ .reply {
margin-left: 0;
}
.d-icon {
padding-left: 8px;
}