Fix: thumbnail border styles and auto-refresh logic
All checks were successful
Automated Container Build / build-and-push (push) Successful in 41s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 41s
This commit is contained in:
parent
a87bb351d0
commit
d8526afd45
3 changed files with 20 additions and 3 deletions
|
|
@ -375,6 +375,17 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
|||
}
|
||||
}, [currentPath, activeSection]);
|
||||
|
||||
// Refresh files after editing to catch the debounced thumbnail generation
|
||||
useEffect(() => {
|
||||
if (!editingFile && activeSection === 'files') {
|
||||
loadFiles(currentPath, true);
|
||||
const timer = setTimeout(() => {
|
||||
loadFiles(currentPath, true);
|
||||
}, 12000);
|
||||
return () => clearTimeout(timer);
|
||||
}
|
||||
}, [editingFile, activeSection, currentPath, loadFiles]);
|
||||
|
||||
const loadFolderTree = useCallback(async () => {
|
||||
try {
|
||||
const data = await api.getFolderTree();
|
||||
|
|
|
|||
Reference in a new issue