fix(settings): fix text wrap of bind condition (#391)

Fixes #370
This commit is contained in:
Xie Jay 2024-04-10 18:02:05 +08:00 committed by GitHub
parent 0e6d30183a
commit e9d6d7e3f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,9 @@
<label class="text-ellipsis-multiple">是否渲染</label>
<div class="advanced-config-form-item">
<meta-switch v-if="!isBind" :modelValue="condition" @update:modelValue="setConfig"> </meta-switch>
<div v-else class="binding-state">已绑定{{ condition.value }}</div>
<div v-else class="binding-state text-ellipsis-multiple" :title="condition.value">
已绑定{{ condition.value }}
</div>
<meta-bind-variable v-model="condition" name="advance" @update:modelValue="setConfig"></meta-bind-variable>
</div>
</div>
@ -19,7 +21,9 @@
@update:modelValue="setLoop"
@open="openEditor"
></meta-code-editor>
<div v-else class="binding-state text-ellipsis-multiple">已绑定{{ state.loopData?.value }}</div>
<div v-else class="binding-state text-ellipsis-multiple" :title="state.loopData?.value">
已绑定{{ state.loopData?.value }}
</div>
<meta-bind-variable v-model="state.loopData" name="advance" @update:modelValue="setLoop"></meta-bind-variable>
</div>
</div>