From 60c80deefe79b7670804c7a095011ee3041dc30c Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 25 Apr 2024 23:17:05 +0200 Subject: [PATCH] Fix editor --- resources/js/components/form/Editor.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/js/components/form/Editor.vue b/resources/js/components/form/Editor.vue index 7a916e29..bfe70706 100644 --- a/resources/js/components/form/Editor.vue +++ b/resources/js/components/form/Editor.vue @@ -132,7 +132,7 @@ class ConditionTune { if (this.hasData()) { this.wrapper.querySelector('[data-content]').className = 'p-1 border border-blue-100 rounded'; this.wrapper.querySelector('[data-tooltip]').className = - 'inline-block tracking-wider font-semibold ml-2 px-2 py-1 items-center text-xs leading-none bg-blue-100 text-blue-900 rounded-t-lg'; + 'mt-1 inline-block tracking-wider font-semibold ml-2 mr-2 px-2 py-1 items-center text-xs leading-none bg-blue-100 text-blue-900 rounded-t-lg'; this.wrapper.querySelector('[data-tooltip]').innerHTML = this.descriptionName(); } else { this.wrapper.querySelector('[data-content]').className = ''; @@ -164,6 +164,10 @@ class ConditionTune { parts.push(i.value.join(', ')); } + if (typeof i.value === 'boolean') { + parts.push(i.value ? 'An' : 'Aus'); + } + return parts.join(' '); }) .join(', ')