fix: address latest coderabbit review findings
This commit is contained in:
@@ -126,6 +126,7 @@ export default function ConversationComposer({
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => onRemoveConversationFile(file.localId)}
|
||||
aria-label={`移除附件 ${file.name || file.localId || '附件'}`}
|
||||
style={{
|
||||
border: 'none',
|
||||
background: 'transparent',
|
||||
@@ -148,6 +149,7 @@ export default function ConversationComposer({
|
||||
value={input}
|
||||
onChange={(event) => onInputChange(event.target.value)}
|
||||
onKeyDown={(event) => {
|
||||
if (event.nativeEvent.isComposing) return;
|
||||
if (event.key === 'Enter' && !event.shiftKey) {
|
||||
event.preventDefault();
|
||||
if (sending) {
|
||||
|
||||
@@ -15,7 +15,7 @@ type DebugPanelPresence = {
|
||||
type DebugPanelProps = {
|
||||
presence: DebugPanelPresence;
|
||||
isMobile: boolean;
|
||||
debugTimestamp: number | null;
|
||||
debugTimestamp: string | null;
|
||||
activeDebugTab: DebugTab;
|
||||
onTabChange: (tab: DebugTab) => void;
|
||||
debugTabContent: string;
|
||||
|
||||
Reference in New Issue
Block a user