mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 22:38:41 +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);
|
const repliesButton = this.attachButton("replies", attrs);
|
||||||
if (repliesButton) {
|
if (repliesButton) {
|
||||||
if (!this.site.mobileView) {
|
postControls.push(repliesButton);
|
||||||
postControls.push(repliesButton);
|
|
||||||
} else {
|
|
||||||
visibleButtons.splice(-1, 0, repliesButton);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const extraPostControls = applyDecorators(
|
const extraPostControls = applyDecorators(
|
||||||
|
@ -35,6 +35,7 @@ span.badge-posts {
|
|||||||
}
|
}
|
||||||
.actions {
|
.actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
|
||||||
// Handles the like and flag buttons in the post menu.
|
// Handles the like and flag buttons in the post menu.
|
||||||
.double-button {
|
.double-button {
|
||||||
@ -88,7 +89,6 @@ span.badge-posts {
|
|||||||
.d-icon {
|
.d-icon {
|
||||||
color: var(--primary-high);
|
color: var(--primary-high);
|
||||||
}
|
}
|
||||||
margin-left: auto;
|
|
||||||
}
|
}
|
||||||
&.has-like {
|
&.has-like {
|
||||||
.d-icon {
|
.d-icon {
|
||||||
@ -106,14 +106,15 @@ span.badge-posts {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.show-replies {
|
.show-replies {
|
||||||
margin-left: auto;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
font-size: $font-up-1;
|
font-size: $font-up-1;
|
||||||
|
padding: 10px 8px;
|
||||||
+ .reply {
|
+ .reply {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.d-icon {
|
.d-icon {
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
|
font-size: $font-down-1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.actions {
|
.actions {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user