mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 05:53:11 +08:00
DEV: Add showLogin action to post menu buttons and prevent text selection (#30500)
This commit adds `showLogin` as an available action to the post menu buttons. They can use this action to show the login form when there is no user logged in. It also adds a small CSS tweak to prevent the content from the post menu to being user selectable. This was causing small UX issues in touch devices.
This commit is contained in:
parent
ce7a14104b
commit
b728b74c49
|
@ -113,6 +113,7 @@ export default class PostMenu extends Component {
|
|||
showDeleteTopicModal: this.showDeleteTopicModal,
|
||||
showFlags: this.args.showFlags,
|
||||
showMoreActions: this.showMoreActions,
|
||||
showLogin: this.args.showLogin,
|
||||
toggleReplies: this.args.toggleReplies,
|
||||
toggleWhoLiked: this.toggleWhoLiked,
|
||||
toggleWhoRead: this.toggleWhoRead,
|
||||
|
|
|
@ -314,6 +314,8 @@ nav.post-controls {
|
|||
|
||||
color: var(--primary-low-mid);
|
||||
|
||||
@include user-select(none);
|
||||
|
||||
.actions {
|
||||
display: inline-flex;
|
||||
text-align: right;
|
||||
|
|
Loading…
Reference in New Issue
Block a user