From 372479bada344c802f23a6d127fddb3bc535fde3 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 23 Sep 2021 15:56:00 +0200 Subject: [PATCH] UX: move fast edit before sharing (#14429) As sharing has some hover behavior, it was looking slightly clunky with fast edit changing position. Putting sharing at the last position will reduce this effect. --- .../app/templates/components/quote-button.hbs | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/components/quote-button.hbs b/app/assets/javascripts/discourse/app/templates/components/quote-button.hbs index 9f424209bd1..06827a16b3b 100644 --- a/app/assets/javascripts/discourse/app/templates/components/quote-button.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/quote-button.hbs @@ -7,6 +7,17 @@ label="post.quote_reply"}} {{/if}} + {{#if siteSettings.enable_fast_edit}} + {{#if _canEditPost}} + {{d-button + icon="pencil-alt" + action=(action "_toggleFastEditForm") + label="post.quote_edit" + class="btn-flat quote-edit-label" + }} + {{/if}} + {{/if}} + {{#if quoteSharingEnabled}} {{#if quoteSharingShowLabel}} @@ -26,20 +37,8 @@ {{/each}} {{plugin-outlet name="quote-share-buttons-after" tagName=""}} - {{/if}} - - {{#if siteSettings.enable_fast_edit}} - {{#if _canEditPost}} - {{d-button - icon="pencil-alt" - action=(action "_toggleFastEditForm") - label="post.quote_edit" - class="btn-flat quote-edit-label" - }} - {{/if}} - {{/if}}