debug: add mousedown handler and z-index to button
This commit is contained in:
parent
23e2dcf1b9
commit
b936e58637
@ -329,11 +329,16 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF
|
||||
</Button>
|
||||
<button
|
||||
type="button"
|
||||
className="h-10 w-10 rounded-full inline-flex items-center justify-center bg-red-500 text-white border-4 border-yellow-400 animate-pulse"
|
||||
className="h-10 w-10 rounded-full inline-flex items-center justify-center bg-red-500 text-white border-4 border-yellow-400 animate-pulse relative z-[9999]"
|
||||
onMouseDown={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
alert('🎯 MouseDown! onOpenFileList: ' + !!onOpenFileList);
|
||||
}}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
alert('🎯 这是聊天面板中的文件列表按钮! onOpenFileList: ' + !!onOpenFileList);
|
||||
alert('🎯 Click! onOpenFileList: ' + !!onOpenFileList);
|
||||
console.log('[CanvasChatPanel] File list button clicked, onOpenFileList:', !!onOpenFileList);
|
||||
if (onOpenFileList) {
|
||||
onOpenFileList();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user