From cbdad79c90ec46c9cac87c1c72bbaafce4376c8c Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 25 Dec 2017 21:29:06 +0800 Subject: [PATCH] Better placement of step loading spinner --- .../templates/components/wizard-step.hbs | 22 ++++++++----------- assets/stylesheets/wizard/wizard_custom.scss | 8 +++---- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/assets/javascripts/wizard/templates/components/wizard-step.hbs b/assets/javascripts/wizard/templates/components/wizard-step.hbs index de068ca9..8348c769 100644 --- a/assets/javascripts/wizard/templates/components/wizard-step.hbs +++ b/assets/javascripts/wizard/templates/components/wizard-step.hbs @@ -32,28 +32,24 @@ {{i18n "wizard.quit"}} {{/if}} - {{#if showBackButton}} - {{i18n "wizard.back"}} + {{#if saving}} + {{loading-spinner size='small'}} + {{else}} + {{#if showBackButton}} + {{i18n "wizard.back"}} + {{/if}} {{/if}} {{#if showNextButton}} {{/if}} {{#if showDoneButton}} {{/if}} diff --git a/assets/stylesheets/wizard/wizard_custom.scss b/assets/stylesheets/wizard/wizard_custom.scss index 1238f069..24930ee6 100644 --- a/assets/stylesheets/wizard/wizard_custom.scss +++ b/assets/stylesheets/wizard/wizard_custom.scss @@ -115,13 +115,13 @@ padding: 0; } - .wizard-buttons > a, .wizard-buttons > button { + .wizard-buttons > a, .wizard-buttons > button, .spinner { display: inline-block; vertical-align: middle; + } - &.done { - min-width: 55px; - } + .spinner.small { + margin-right: 10px; } }