Skip to content

Commit 0cc08ff

Browse files
committed
fix(stage-ui): model settings for live2d ui issue
1 parent d43d4db commit 0cc08ff

2 files changed

Lines changed: 19 additions & 13 deletions

File tree

  • packages

packages/stage-ui/src/components/scenarios/settings/model-settings/live2d.vue

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,23 @@ function handleMotionSelect(selectedMotionPath: string | number | undefined) {
320320
</template>
321321
</FieldCombobox>
322322

323-
<div :class="['mt-4', 'flex', 'items-center', 'justify-between']">
324-
<div :class="['flex', 'flex-col', 'gap-1']">
325-
<span :class="['text-sm', 'text-neutral-600', 'dark:text-neutral-400']">
326-
{{ t('settings.live2d.fps.title') }}
327-
</span>
328-
<span :class="['text-xs', 'text-neutral-500', 'dark:text-neutral-400']">
329-
{{ t('settings.live2d.fps.description') }}
330-
</span>
323+
<label class="flex flex-col gap-4">
324+
<div :class="['flex items-center gap-2', 'flex-row']">
325+
<div class="flex-1">
326+
<div class="flex items-center gap-1 text-sm font-medium">
327+
<slot name="label">
328+
{{ t('settings.live2d.fps.title') }}
329+
</slot>
330+
</div>
331+
<div class="text-xs text-neutral-500 dark:text-neutral-400">
332+
<slot name="description">
333+
{{ t('settings.live2d.fps.description') }}
334+
</slot>
335+
</div>
336+
</div>
337+
<SelectTab v-model="live2dMaxFps" :options="fpsOptions" size="sm" :class="['shrink-0']" />
331338
</div>
332-
<SelectTab v-model="live2dMaxFps" :options="fpsOptions" size="sm" :class="['w-48', 'shrink-0']" />
333-
</div>
339+
</label>
334340

335341
<div mt-4 flex items-center justify-between>
336342
<span text-sm text-neutral-600 dark:text-neutral-400>Auto Blink</span>

packages/ui/src/components/form/select-tab/select-tab.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const isDisabled = computed(() => props.disabled || props.readonly)
2828
2929
const sizeClasses = computed(() =>
3030
props.size === 'sm'
31-
? ['py-2', 'px-3', 'text-xs', 'rounded-md']
32-
: ['py-2.5', 'px-3.5', 'text-sm', 'rounded-md'],
31+
? ['py-2', 'px-3', 'text-xs', 'rounded-md', 'min-w-24']
32+
: ['py-2.5', 'px-3.5', 'text-sm', 'rounded-md', 'min-w-32'],
3333
)
3434
3535
const rootStyle = computed(() => ({
@@ -49,7 +49,7 @@ const rootStyle = computed(() => ({
4949
:class="[
5050
'select-tab',
5151
'is-interacting',
52-
'relative', 'flex', 'w-full', 'items-stretch', 'rounded-lg',
52+
'relative', 'flex', 'items-stretch', 'rounded-lg',
5353
'overflow-hidden',
5454
'bg-white-400/6', 'dark:bg-neutral-950/70',
5555
'transition-[border-color,box-shadow,opacity]', 'duration-200', 'ease-out',

0 commit comments

Comments
 (0)