mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 17:00:17 +08:00
UX: Update positioning of mobile post controls (#12760)
This commit is contained in:
parent
c47e6a2004
commit
3c0164f369
|
@ -561,11 +561,7 @@ export default createWidget("post-menu", {
|
|||
|
||||
const repliesButton = this.attachButton("replies", attrs);
|
||||
if (repliesButton) {
|
||||
if (!this.site.mobileView) {
|
||||
postControls.push(repliesButton);
|
||||
} else {
|
||||
visibleButtons.splice(-1, 0, repliesButton);
|
||||
}
|
||||
postControls.push(repliesButton);
|
||||
}
|
||||
|
||||
const extraPostControls = applyDecorators(
|
||||
|
|
|
@ -35,6 +35,7 @@ span.badge-posts {
|
|||
}
|
||||
.actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
||||
// Handles the like and flag buttons in the post menu.
|
||||
.double-button {
|
||||
|
@ -88,7 +89,6 @@ span.badge-posts {
|
|||
.d-icon {
|
||||
color: var(--primary-high);
|
||||
}
|
||||
margin-left: auto;
|
||||
}
|
||||
&.has-like {
|
||||
.d-icon {
|
||||
|
@ -106,14 +106,15 @@ span.badge-posts {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
.show-replies {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
font-size: $font-up-1;
|
||||
padding: 10px 8px;
|
||||
+ .reply {
|
||||
margin-left: 0;
|
||||
}
|
||||
.d-icon {
|
||||
padding-left: 8px;
|
||||
font-size: $font-down-1;
|
||||
}
|
||||
}
|
||||
.actions {
|
||||
|
|
Loading…
Reference in New Issue
Block a user