debug: make file list button very visible (red pulsing)
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:07:52 +08:00
parent 76eac7a52a
commit 23e2dcf1b9

View File

@ -329,19 +329,19 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF
</Button>
<button
type="button"
className="h-8 w-8 rounded-full hover:bg-muted inline-flex items-center justify-center bg-blue-500 text-white"
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"
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
alert('File list button clicked! onOpenFileList: ' + !!onOpenFileList);
alert('🎯 这是聊天面板中的文件列表按钮! onOpenFileList: ' + !!onOpenFileList);
console.log('[CanvasChatPanel] File list button clicked, onOpenFileList:', !!onOpenFileList);
if (onOpenFileList) {
onOpenFileList();
}
}}
title="已生成文件列表"
title="文件列表按钮 - 点我切换到文件列表"
>
<LayoutGrid className="h-4 w-4" />
<LayoutGrid className="h-5 w-5" />
</button>
<Button variant="ghost" size="icon" className="h-8 w-8 rounded-full hover:bg-muted">
<Maximize2 className="h-4 w-4" />