diff --git a/src/views/inference-application/components/comparison-chat-textarea.vue b/src/views/inference-application/components/comparison-chat-textarea.vue
index c90d19e..6600faf 100644
--- a/src/views/inference-application/components/comparison-chat-textarea.vue
+++ b/src/views/inference-application/components/comparison-chat-textarea.vue
@@ -5,10 +5,6 @@ const props = defineProps({
type: String,
default: '',
},
- maxlength: {
- type: Number,
- default: 100,
- },
rows: {
type: Number,
default: 1,
@@ -21,6 +17,10 @@ const props = defineProps({
type: Function as PropType<() => Promise
>,
default: () => Promise.resolve(true),
},
+ emptyChatQuestionFn: {
+ type: Function,
+ default: () => null,
+ },
});
const emit = defineEmits(['update:modelValue']);
@@ -35,12 +35,9 @@ const chatInput = computed({
},
});
-const chatInputLength = computed(() => chatInput.value.length);
-
const remInPixels = parseFloat(getComputedStyle(document.documentElement).fontSize);
const lineHeight = 2.1 * remInPixels;
-const padding = 2.8 * remInPixels;
-const height = ref(lineHeight + padding);
+const height = ref(lineHeight);
// const height = computed(() => textLines.value * lineHeight + padding);
watch(
@@ -57,83 +54,100 @@ const isOverflow = computed(() => height.value > 200);
-
-
-
-