fix: File-Explorer – Padding klickbar (Click-Handler vom Label aufs Item)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e7b663c82f
commit
52ab6ff00c
2 files changed
+7
-5
No files matched your search
@@ -145,10 +145,6 @@ async function feLoadDir(path) {
|
||||
const label = document.createElement('span');
|
||||
label.className = 'fe-dir-label';
|
||||
label.innerHTML = '<i class="fa fa-folder"></i> ' + esc(entry.name);
|
||||
label.addEventListener('click', () => {
|
||||
_feState.history.push(path);
|
||||
feLoadDir(entry.path);
|
||||
});
|
||||
item.appendChild(label);
|
||||
|
||||
const delBtn = document.createElement('button');
|
||||
@@ -160,6 +156,11 @@ async function feLoadDir(path) {
|
||||
feDeleteDir(entry.path, entry.name);
|
||||
});
|
||||
item.appendChild(delBtn);
|
||||
|
||||
item.addEventListener('click', () => {
|
||||
_feState.history.push(path);
|
||||
feLoadDir(entry.path);
|
||||
});
|
||||
} else {
|
||||
item.classList.add('fe-file');
|
||||
const icon = entry.isText ? '<i class="fa fa-file-text-o"></i>' : getFileIcon(entry.ext);
|
||||
|
||||
Reference in new issue
Block a user