From 6d5f9760c3d210ebce52b4dfc3d7f4be5efdfb93 Mon Sep 17 00:00:00 2001
From: junkwarrior87 <115852752+junkwarrior87@users.noreply.github.com>
Date: Wed, 12 Mar 2025 17:41:34 +0800
Subject: [PATCH] fix(stage-web): fix textarea behaviors (#72)
---
.../components/Layouts/InteractiveArea.vue | 2 +-
.../stage-ui/src/components/BasicTextarea.vue | 64 +++++--------------
2 files changed, 16 insertions(+), 50 deletions(-)
diff --git a/apps/stage-web/src/components/Layouts/InteractiveArea.vue b/apps/stage-web/src/components/Layouts/InteractiveArea.vue
index eb851dc85..3349c01a0 100644
--- a/apps/stage-web/src/components/Layouts/InteractiveArea.vue
+++ b/apps/stage-web/src/components/Layouts/InteractiveArea.vue
@@ -198,7 +198,7 @@ onAfterSend(async () => {
:placeholder="t('stage.message')"
text="primary-300 hover:primary-500 dark:primary-300/50 dark:hover:primary-500 placeholder:primary-300 placeholder:hover:primary-500 placeholder:dark:primary-300/50 placeholder:dark:hover:primary-500"
bg="primary-100 dark:primary-400/20"
- min-h="[100px]" w-full
+ min-h="[100px]" max-h="[300px]" w-full
rounded-t-xl p-4 font-medium
outline-none transition="all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out"
@submit="handleSend"
diff --git a/packages/stage-ui/src/components/BasicTextarea.vue b/packages/stage-ui/src/components/BasicTextarea.vue
index b5b1d68cd..d74983d0a 100644
--- a/packages/stage-ui/src/components/BasicTextarea.vue
+++ b/packages/stage-ui/src/components/BasicTextarea.vue
@@ -1,7 +1,5 @@
-