Skip to content

Commit d01effc

Browse files
Update centering
1 parent d059c0a commit d01effc

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/documentation/components/examples/ButtonsFieldExample.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,18 @@ const buttonAlignOptions = [
211211
title: 'End',
212212
value: 'end',
213213
},
214+
{
215+
title: 'Space Between',
216+
value: 'space-between',
217+
},
218+
{
219+
title: 'Space Around',
220+
value: 'space-around',
221+
},
222+
{
223+
title: 'Space Evenly',
224+
value: 'space-evenly',
225+
},
214226
];
215227
const buttonBlock = ref(false);
216228
const buttonDensityModel = ref('default' as const);

src/plugin/components/fields/VSFButtonField/VSFButtonField.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ const buttontextcolor = ref('rgb(var(--v-theme-on-surface))');
358358
// -------------------------------------------------- Classes //
359359
const itemGroupClass = computed(() => {
360360
return {
361-
[`align-${field?.align}`]: field?.align != null,
361+
[`align-${field?.align}`]: field?.align != null && field?.block,
362+
[`justify-${field?.align}`]: field?.align != null && !field?.block,
362363
'd-flex': true,
363364
'flex-column': field?.block,
364365
[`ga-${gap.value}`]: !containsSizeUnit(gap.value),

0 commit comments

Comments
 (0)