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:
Sérgio Saquetim 2024-12-30 15:57:07 -03:00 committed by GitHub
parent ce7a14104b
commit b728b74c49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -113,6 +113,7 @@ export default class PostMenu extends Component {
showDeleteTopicModal: this.showDeleteTopicModal, showDeleteTopicModal: this.showDeleteTopicModal,
showFlags: this.args.showFlags, showFlags: this.args.showFlags,
showMoreActions: this.showMoreActions, showMoreActions: this.showMoreActions,
showLogin: this.args.showLogin,
toggleReplies: this.args.toggleReplies, toggleReplies: this.args.toggleReplies,
toggleWhoLiked: this.toggleWhoLiked, toggleWhoLiked: this.toggleWhoLiked,
toggleWhoRead: this.toggleWhoRead, toggleWhoRead: this.toggleWhoRead,

View File

@ -314,6 +314,8 @@ nav.post-controls {
color: var(--primary-low-mid); color: var(--primary-low-mid);
@include user-select(none);
.actions { .actions {
display: inline-flex; display: inline-flex;
text-align: right; text-align: right;