fix: hide label of textarea in right side panel + align switch to the left

This commit is contained in:
Rizumu Ayaka
2026-01-23 21:19:54 +08:00
parent f647c8f9ee
commit c38e0c2ffe
2 changed files with 13 additions and 4 deletions

View File

@@ -1,6 +1,10 @@
<template>
<WidgetLayoutField :widget>
<div class="ml-auto flex w-fit items-center gap-2">
<div
:class="
cn('flex w-fit items-center gap-2', { 'ml-auto': !hideLayoutField })
"
>
<span
v-if="stateLabel"
:class="
@@ -25,7 +29,7 @@
<script setup lang="ts">
import ToggleSwitch from 'primevue/toggleswitch'
import { computed } from 'vue'
import { computed, inject } from 'vue'
import type { IWidgetOptions } from '@/lib/litegraph/src/types/widgets'
import type { SimplifiedWidget } from '@/types/simplifiedWidget'
@@ -43,6 +47,8 @@ const { widget } = defineProps<{
const modelValue = defineModel<boolean>()
const hideLayoutField = inject<boolean>('hideLayoutField', false)
const filteredProps = computed(() =>
filterWidgetProps(widget.options, STANDARD_EXCLUDED_PROPS)
)