mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: better chat-message-actions position (#19111)
- prevents menu to hide underlying text - prevents `chat-message-actions` to close when hovering dropdown of 3 dots button as mouse would hover an other message due to the small space between `chat-message-actions` menu and the dropdown of the 3 dots button <!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. -->
This commit is contained in:
parent
a64d2364ec
commit
3f24a5e9e2
@ -5,7 +5,7 @@ import { schedule } from "@ember/runloop";
|
||||
import { inject as service } from "@ember/service";
|
||||
|
||||
const MSG_ACTIONS_HORIZONTAL_PADDING = 2;
|
||||
const MSG_ACTIONS_VERTICAL_PADDING = -15;
|
||||
const MSG_ACTIONS_VERTICAL_PADDING = -28;
|
||||
|
||||
export default Component.extend({
|
||||
tagName: "",
|
||||
|
@ -21,7 +21,7 @@
|
||||
{{/if}}
|
||||
|
||||
{{#if this.secondaryButtons.length}}
|
||||
<DropdownSelectBox @class="more-buttons" @options={{hash icon="ellipsis-v" placement="bottom-end"}} @content={{this.secondaryButtons}} @onChange={{action "handleSecondaryButtons"}} />
|
||||
<DropdownSelectBox @class="more-buttons" @options={{hash icon="ellipsis-v" placement="left"}} @content={{this.secondaryButtons}} @onChange={{action "handleSecondaryButtons"}} />
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user