Skip to content

Commit 812159a

Browse files
author
Guillaume Chau
committed
fix: put actions buttons together, closes vuejs#1588
1 parent 51490c6 commit 812159a

File tree

8 files changed

+35
-35
lines changed

8 files changed

+35
-35
lines changed

packages/@vue/cli-ui/src/components/FileDiffView.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
/>
6868
<VueButton
6969
:label="$t('org.vue.components.file-diff-view.actions.refresh')"
70+
icon-left="refresh"
7071
class="big"
7172
@click="refresh()"
7273
/>
@@ -100,7 +101,7 @@
100101
</VueFormField>
101102
</div>
102103

103-
<div slot="footer" class="actions space-between">
104+
<div slot="footer" class="actions center">
104105
<VueButton
105106
:label="$t('org.vue.components.file-diff-view.modals.commit.actions.cancel')"
106107
class="flat"
@@ -273,4 +274,8 @@ export default {
273274
height 0
274275
overflow-x hidden
275276
overflow-y auto
277+
278+
.actions-bar
279+
.vue-ui-button
280+
min-width 190px
276281
</style>

packages/@vue/cli-ui/src/components/FolderExplorer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
</VueFormField>
177177
</div>
178178

179-
<div slot="footer" class="actions space-between">
179+
<div slot="footer" class="actions end">
180180
<VueButton
181181
:label="$t('org.vue.components.folder-explorer.new-folder.cancel')"
182182
class="flat close"

packages/@vue/cli-ui/src/components/NpmPackageSearch.vue

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,20 @@
4949
</ais-index>
5050
</div>
5151

52-
<div class="actions-bar no-padding-x space-between">
52+
<div class="actions-bar no-padding-x">
53+
<div class="algolia">
54+
<img class="ais-logo" src="~@/assets/search-by-algolia.svg">
55+
</div>
56+
57+
<div class="vue-ui-spacer"/>
58+
5359
<VueButton
5460
icon-left="close"
5561
:label="$t('org.vue.views.project-plugins-add.tabs.search.buttons.cancel')"
5662
class="big"
5763
@click="close()"
5864
/>
5965

60-
<div class="algolia">
61-
<img class="ais-logo" src="~@/assets/search-by-algolia.svg">
62-
</div>
63-
6466
<VueButton
6567
icon-left="file_download"
6668
:label="selectedIdModel ? $t('org.vue.views.project-plugins-add.tabs.search.buttons.install', { target: selectedIdModel }) : $t('org.vue.views.project-plugins-add.tabs.search.buttons.default-install')"
@@ -158,13 +160,9 @@ export default {
158160
overflow hidden
159161
160162
.algolia
161-
position absolute
162-
margin 0 auto
163-
top 0
164-
left 0
165-
width 100%
163+
width 200px
166164
height 100%
167-
pointer-events none
165+
margin-left $padding-item
168166
h-box()
169167
box-center()
170168
</style>

packages/@vue/cli-ui/src/components/StepWizard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ export default {
106106
overflow-y auto
107107
108108
> .actions-bar
109-
justify-content space-between
110-
&.center
111-
justify-content center
109+
justify-content center
110+
.vue-ui-button:not(.icon-button)
111+
min-width 190px
112112
113113
.title
114114
padding $padding-item

packages/@vue/cli-ui/src/views/ProjectConfigurationDetails.vue

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,7 @@
2828
</div>
2929
</template>
3030

31-
<div class="actions-bar space-between">
32-
<VueButton
33-
:disabled="!hasPromptsChanged"
34-
icon-left="cancel"
35-
class="big"
36-
:label="$t('org.vue.views.project-configuration-details.actions.cancel')"
37-
@click="cancel()"
38-
/>
39-
31+
<div class="actions-bar">
4032
<VueButton
4133
v-if="configuration && configuration.link"
4234
icon-right="open_in_new"
@@ -46,6 +38,16 @@
4638
target="_blank"
4739
/>
4840

41+
<div class="vue-ui-spacer"/>
42+
43+
<VueButton
44+
:disabled="!hasPromptsChanged"
45+
icon-left="cancel"
46+
class="big"
47+
:label="$t('org.vue.views.project-configuration-details.actions.cancel')"
48+
@click="cancel()"
49+
/>
50+
4951
<VueButton
5052
v-if="configuration && !hasPromptsChanged"
5153
icon-left="refresh"

packages/@vue/cli-ui/src/views/ProjectCreate.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@
357357
</VueFormField>
358358
</div>
359359

360-
<div slot="footer" class="actions space-between">
360+
<div slot="footer" class="actions end">
361361
<VueButton
362362
:label="$t('org.vue.views.project-create.tabs.presets.remote.cancel')"
363363
class="flat"
@@ -385,7 +385,7 @@
385385
{{ $t('org.vue.views.project-create.tabs.details.modal.body') }}
386386
</div>
387387

388-
<div slot="footer" class="actions space-between">
388+
<div slot="footer" class="actions end">
389389
<VueButton
390390
:label="$t('org.vue.views.project-create.tabs.details.modal.buttons.back')"
391391
class="flat"
@@ -427,11 +427,9 @@
427427
@click="showSavePreset = false"
428428
/>
429429

430-
<div class="vue-ui-spacer"/>
431-
432430
<VueButton
433431
:label="$t('org.vue.views.project-create.tabs.configuration.modal.buttons.continue')"
434-
class="flat continue"
432+
class="continue"
435433
@click="createWithoutSaving()"
436434
/>
437435

packages/@vue/cli-ui/src/views/ProjectDependencies.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
{{ $t('org.vue.views.project-dependencies.uninstall.body', { id: selectedId }) }}
117117
</div>
118118

119-
<div slot="footer" class="actions space-between">
119+
<div slot="footer" class="actions end">
120120
<VueButton
121121
:label="$t('org.vue.views.project-dependencies.uninstall.cancel')"
122122
class="flat"

packages/@vue/cli-ui/src/views/ProjectPluginsAdd.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,15 @@
8080
{{ $t('org.vue.views.project-plugins-add.modal.body', { target: pluginId }) }}
8181
</div>
8282

83-
<div slot="footer" class="actions space-between">
83+
<div slot="footer" class="actions end">
8484
<VueButton
8585
:label="$t('org.vue.views.project-plugins-add.modal.buttons.back')"
8686
class="flat"
8787
@click="showCancelInstall = false"
8888
/>
8989

90-
<div class="vue-ui-spacer"/>
91-
9290
<VueButton
9391
:label="$t('org.vue.views.project-plugins-add.modal.buttons.cancel')"
94-
class="flat"
9592
@click="cancelInstall()"
9693
/>
9794

0 commit comments

Comments
 (0)