mirror of https://github.com/zulip/zulip.git
copy_message_button: Use `div` HTML tag instead of `button`.
For some reason, browser is treating clicking on the button as submitting the form, which results in the page getting redirected to the same page with an additional empty query `?` in the URL.
This commit is contained in:
parent
e65e78719d
commit
83423bb45b
|
@ -597,10 +597,18 @@ li,
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy_message {
|
.copy_message {
|
||||||
|
float: right;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 27px;
|
cursor: pointer;
|
||||||
left: -10px;
|
top: 30px;
|
||||||
margin-top: -24px;
|
/* To make sure the svg doesn't occupy any vertical space. */
|
||||||
|
margin-top: -30px;
|
||||||
|
right: 2px;
|
||||||
|
padding-top: 2px;
|
||||||
|
|
||||||
|
#clipboard_image {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#copy_generated_invite_link {
|
#copy_generated_invite_link {
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<button class="btn pull-right copy_button_base copy_message tippy-zulip-tooltip" data-tippy-content="{{t 'Copy and close' }}" aria-label="{{t 'Copy and close' }}" >
|
<div class="copy_button_base copy_message tippy-zulip-tooltip" data-tippy-content="{{t 'Copy and close' }}" aria-label="{{t 'Copy and close' }}" role="button">
|
||||||
{{> copy_to_clipboard_svg }}
|
{{> copy_to_clipboard_svg }}
|
||||||
</button>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue