debug: add mousedown handler and z-index to button
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-01-26 22:12:18 +08:00
parent 23e2dcf1b9
commit b936e58637

View File

@ -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();