mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: moves wizard's "Finish" button to the left of back and next (#7027)
This was done to avoid clicking finish when clicking fast on next.
This commit is contained in:
@@ -32,6 +32,12 @@
|
|||||||
<a href {{action "quit"}} class='action-link quit' tabindex="11">{{i18n "wizard.quit"}}</a>
|
<a href {{action "quit"}} class='action-link quit' tabindex="11">{{i18n "wizard.quit"}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if showFinishButton}}
|
||||||
|
<button class='wizard-btn finish' {{action "exitEarly"}} disabled={{saving}} tabindex="10">
|
||||||
|
{{i18n "wizard.finish"}}
|
||||||
|
</button>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if showBackButton}}
|
{{#if showBackButton}}
|
||||||
<a href {{action "backStep"}} class='action-link back' tabindex="11">{{i18n "wizard.back"}}</a>
|
<a href {{action "backStep"}} class='action-link back' tabindex="11">{{i18n "wizard.back"}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@@ -43,12 +49,6 @@
|
|||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if showFinishButton}}
|
|
||||||
<button class='wizard-btn finish' {{action "exitEarly"}} disabled={{saving}} tabindex="10">
|
|
||||||
{{i18n "wizard.finish"}}
|
|
||||||
</button>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if showDoneButton}}
|
{{#if showDoneButton}}
|
||||||
<button class='wizard-btn done' {{action "quit"}} disabled={{saving}} tabindex="10">
|
<button class='wizard-btn done' {{action "quit"}} disabled={{saving}} tabindex="10">
|
||||||
{{i18n "wizard.done"}}
|
{{i18n "wizard.done"}}
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ body.wizard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wizard-step-colors {
|
.wizard-step-colors {
|
||||||
|
max-height: 465px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
.grid {
|
.grid {
|
||||||
@@ -171,7 +172,7 @@ body.wizard {
|
|||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
|
|
||||||
.wizard-step-contents {
|
.wizard-step-contents {
|
||||||
min-height: 510px;
|
height: 550px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wizard-column-contents {
|
.wizard-column-contents {
|
||||||
@@ -544,7 +545,7 @@ body.wizard {
|
|||||||
max-height: none;
|
max-height: none;
|
||||||
}
|
}
|
||||||
.wizard-step-contents {
|
.wizard-step-contents {
|
||||||
min-height: auto !important;
|
height: auto !important;
|
||||||
}
|
}
|
||||||
.wizard-step-banner {
|
.wizard-step-banner {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user