🐛 fix jumping "Invite User" button when modal is opened

closes TryGhost/Ghost#7890
- moved the modal outside of the `<header>` tag to avoid triggering unexpected flexbox justification
This commit is contained in:
André Borud 2017-01-31 10:10:36 +01:00 committed by Kevin Ansfield
parent c374e8a343
commit ca08a878d2

View File

@ -6,15 +6,15 @@
<section class="view-actions"> <section class="view-actions">
<button class="btn btn-green" {{action "toggleInviteUserModal"}} >Invite People</button> <button class="btn btn-green" {{action "toggleInviteUserModal"}} >Invite People</button>
</section> </section>
{{#if showInviteUserModal}}
{{gh-fullscreen-modal "invite-new-user"
close=(action "toggleInviteUserModal")
modifier="action"}}
{{/if}}
{{/unless}} {{/unless}}
</header> </header>
{{#if showInviteUserModal}}
{{gh-fullscreen-modal "invite-new-user"
close=(action "toggleInviteUserModal")
modifier="action"}}
{{/if}}
{{#gh-infinite-scroll {{#gh-infinite-scroll
fetch="loadNextPage" fetch="loadNextPage"
isLoading=isLoading isLoading=isLoading