UI: minor tweaks to insert-hyplink modal (#12871)
- ensures footer buttons are aligned - prevents focus on close button to be much larger than it should be, note that this fix could impact other modals but the current solution is not working, so better fix it differently if needed
This commit is contained in:
parent
cd93d1b5f7
commit
8be0191ffc
|
@ -1,5 +1,5 @@
|
||||||
<form {{action "ok" on="submit"}}>
|
{{#d-modal-body title="composer.link_dialog_title" class="insert-link"}}
|
||||||
{{#d-modal-body title="composer.link_dialog_title" class="insert-link"}}
|
<form id="insert-hyperlink-form" {{action "ok" on="submit"}}>
|
||||||
<div class="inputs">
|
<div class="inputs">
|
||||||
{{text-field
|
{{text-field
|
||||||
value=linkUrl
|
value=linkUrl
|
||||||
|
@ -18,7 +18,8 @@
|
||||||
class="search-link"
|
class="search-link"
|
||||||
href={{result.url}}
|
href={{result.url}}
|
||||||
onclick={{action "linkClick"}}
|
onclick={{action "linkClick"}}
|
||||||
data-title={{result.fancy_title}}>
|
data-title={{result.fancy_title}}
|
||||||
|
>
|
||||||
{{topic-status topic=result disableActions=true}}
|
{{topic-status topic=result disableActions=true}}
|
||||||
{{replace-emoji result.fancy_title}}
|
{{replace-emoji result.fancy_title}}
|
||||||
<div class="search-category">
|
<div class="search-category">
|
||||||
|
@ -36,10 +37,21 @@
|
||||||
<div class="inputs">
|
<div class="inputs">
|
||||||
{{text-field value=linkText placeholderKey="composer.link_optional_text" class="link-text"}}
|
{{text-field value=linkText placeholderKey="composer.link_optional_text" class="link-text"}}
|
||||||
</div>
|
</div>
|
||||||
{{/d-modal-body}}
|
</form>
|
||||||
|
{{/d-modal-body}}
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
{{d-button class="btn-primary" label="composer.modal_ok" action=(action "ok") type="submit"}}
|
{{d-button
|
||||||
{{d-button class="btn-danger" label="composer.modal_cancel" action=(action "cancel")}}
|
class="btn-primary"
|
||||||
</div>
|
label="composer.modal_ok"
|
||||||
</form>
|
action=(action "ok")
|
||||||
|
type="submit"
|
||||||
|
form="insert-hyperlink-form"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{d-button
|
||||||
|
class="btn-danger"
|
||||||
|
label="composer.modal_cancel"
|
||||||
|
action=(action "cancel")
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
.modal-close {
|
.modal-close {
|
||||||
order: 2;
|
order: 2;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
padding-left: 2em;
|
|
||||||
.close {
|
.close {
|
||||||
color: var(--primary-high);
|
color: var(--primary-high);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue