Fix: thumbnail border styles and auto-refresh logic
All checks were successful
Automated Container Build / build-and-push (push) Successful in 41s

This commit is contained in:
Elijah 2026-05-25 15:04:11 -07:00
parent a87bb351d0
commit d8526afd45
3 changed files with 20 additions and 3 deletions

View file

@ -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();