refactor(chat): remove keyboard compatibility layer

This commit is contained in:
2026-07-16 14:36:33 +08:00
parent aec7cee9cf
commit 8b6bcab05c
9 changed files with 26 additions and 629 deletions
+2 -5
View File
@@ -4,7 +4,7 @@ import { useRef, useState } from "react";
import { useChatDispatch } from "@/stores/chat/chat-context";
import { Logger } from "@/utils/logger";
import { useChatKeyboardAvoidance } from "../hooks/use-chat-keyboard-avoidance";
import { useChatKeyboardDiagnostics } from "../hooks/use-chat-keyboard-diagnostics";
import { ChatInputTextField } from "./chat-input-text-field";
import { ChatSendButton } from "./chat-send-button";
import styles from "./chat-input-bar.module.css";
@@ -26,10 +26,7 @@ export function ChatInputBar({ disabled = false }: ChatInputBarProps) {
const hasContent = input.trim().length > 0;
useChatKeyboardAvoidance({
containerRef: barRef,
active: isFocused,
});
useChatKeyboardDiagnostics({ containerRef: barRef });
const handleInputChange = (value: string) => {
setInput(value);