fix: My Computer client liệt kê folder+files, điều hướng file list đúng

This commit is contained in:
2026-08-02 14:53:37 +07:00
parent 5423686c73
commit 36ee2bdf90
4 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -9514,8 +9514,8 @@ const MediaExplorerPanel = ({ height }) => {
return (
<tr key={(f.path || f.file_id || f.name) + i}
className={`cursor-pointer hover:bg-blue-100 ${isSel ? 'file-row-selected' : ''}`}
onClick={() => f.is_dir ? browseComputerDir(f.path) : handleSelect(f)}
onDoubleClick={() => f.is_dir && browseComputerDir(f.path)}>
onClick={() => f.is_dir ? browseComputerDir(f) : handleSelect(f)}
onDoubleClick={() => f.is_dir && browseComputerDir(f)}>
<td className="py-1 px-2"><i className={`fa-solid ${icon} mr-2`}></i>{f.name || f.original_name}</td>
{viewMode === 'details' && <td className="py-1 px-2">{f.size_mb != null ? f.size_mb.toFixed(2) + ' MB' : (isMidi ? (f.tpqn || 'MIDI') + ' TPQN' : '-')}</td>}
</tr>