Skip to content

A platform for community discussion. Free, open, simple.

UX: Add class to text select menu when fast-editing (#24991)

Jordan Vidrine547aafba4f6b
diff --git a/app/assets/javascripts/discourse/app/components/post-text-selection-toolbar.gjs b/app/assets/javascripts/discourse/app/components/post-text-selection-toolbar.gjs
index 372a724e993..4fdc6853c15 100644
--- a/app/assets/javascripts/discourse/app/components/post-text-selection-toolbar.gjs
+++ b/app/assets/javascripts/discourse/app/components/post-text-selection-toolbar.gjs
@@ -183,7 +183,11 @@ export default class PostTextSelectionToolbar extends Component {
<div
{{on "mousedown" this.trapEvents}}
{{on "mouseup" this.trapEvents}}
- class={{concatClass "quote-button" "visible"}}
+ class={{concatClass
+ "quote-button"
+ "visible"
+ (if this.isFastEditing "fast-editing")
+ }}
{{this.appEventsListeners}}
>
<div class="buttons">