-
}
- className="text-neutral-400"
- />
-
}
- loading={isSending}
- disabled={isSending || !inputValue.trim()}
- onClick={() => {
- void sendMessage();
- }}
- className="!flex !h-9 !w-9 !items-center !justify-center !border-0 !shadow-none"
- style={{
- background: "var(--ds-send)",
- }}
- />
+
+ {showScrollToBottom && (
+
+ )}
+
+
setInputValue(e.target.value)}
+ onPressEnter={(e) => {
+ if (e.shiftKey) return;
+ e.preventDefault();
+ void sendMessage();
+ }}
+ placeholder="给 ChatOne 发送消息"
+ variant="borderless"
+ autoSize={{ minRows: 2, maxRows: 8 }}
+ className="!px-1 !text-[15px] placeholder:text-neutral-400"
+ />
+
+
+
+
+
+
+ }
+ className="text-neutral-400"
+ />
+ }
+ loading={isSending}
+ disabled={isSending || !inputValue.trim()}
+ onClick={() => {
+ void sendMessage();
+ }}
+ className="!flex !h-9 !w-9 !items-center !justify-center !border-0 !shadow-none"
+ style={{
+ background: "var(--ds-send)",
+ }}
+ />
+
diff --git a/yarn.lock b/yarn.lock
index 61b3ba1..401548e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2932,6 +2932,11 @@ lru-cache@^5.1.1:
dependencies:
yallist "^3.0.2"
+lucide-react@^1.9.0:
+ version "1.9.0"
+ resolved "https://registry.npmmirror.com/lucide-react/-/lucide-react-1.9.0.tgz#3c8324e6b574131624c1869cbd38829d9c659627"
+ integrity sha512-6qVAmbgCjcJz7sAGSPSSJ++RAwjlK2XCbRrZKv63Ciko1KT8jX0//CXxgI3jg2HlJu8tADqdYlNDebmYjeoruA==
+
magic-string@^0.30.21:
version "0.30.21"
resolved "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.21.tgz#56763ec09a0fa8091df27879fd94d19078c00d91"