fix: remove draggable from folder item — button click works on all resolutions

This commit is contained in:
Agent Zero
2026-07-27 16:48:49 +02:00
parent 470e183ade
commit 4c951c9c61
@@ -171,21 +171,12 @@ function FolderTreeItem({
onSelectFolder(node.id); onSelectFolder(node.id);
}} }}
> >
<span {chevron(expanded)}
draggable {icon(ICONS.folder, 'w-4 h-4 text-secondary-400')}
onDragStart={(e) => { <span className="flex-1 truncate">{node.name}</span>
e.dataTransfer.setData('text/folder-id', node.id); {node.contact_count > 0 && (
e.dataTransfer.effectAllowed = 'move'; <span className="text-xs text-secondary-400 tabular-nums">{node.contact_count}</span>
}} )}
className="flex items-center gap-1.5 flex-1 min-w-0"
>
{chevron(expanded)}
{icon(ICONS.folder, 'w-4 h-4 text-secondary-400')}
<span className="flex-1 truncate">{node.name}</span>
{node.contact_count > 0 && (
<span className="text-xs text-secondary-400 tabular-nums">{node.contact_count}</span>
)}
</span>
<button <button
type="button" type="button"
onClick={(e) => { e.stopPropagation(); e.preventDefault(); onMoreClick(e, node.id); }} onClick={(e) => { e.stopPropagation(); e.preventDefault(); onMoreClick(e, node.id); }}