Compare commits

..

No commits in common. "afc15134f5b796d7fc8f8a3e36b871225306b146" and "085df24ba7f8d2c8e214bfaf1a5833bc20f1d94c" have entirely different histories.

2 changed files with 5 additions and 6 deletions

View File

@ -236,9 +236,9 @@ function AppPage({ title, onBack }: { title: string; onBack: () => void }) {
<div className="size-full flex flex-col bg-neutral-50"> <div className="size-full flex flex-col bg-neutral-50">
<Toaster <Toaster
position="bottom-center" position="bottom-center"
offset="calc(4.5rem + env(safe-area-inset-bottom))" offset="calc(4rem + env(safe-area-inset-bottom))"
richColors richColors
expand closeButton
duration={5000} duration={5000}
toastOptions={{ toastOptions={{
style: { fontSize: '0.9rem', fontWeight: 500, padding: '14px 16px' }, style: { fontSize: '0.9rem', fontWeight: 500, padding: '14px 16px' },

View File

@ -492,7 +492,6 @@ export default function MediaManager({ initialPath, rootPath, title, config, set
useEffect(() => { useEffect(() => {
let cancelled = false; let cancelled = false;
setFolderConfig(null);
getFileContents(joinPath(path, '.config')) getFileContents(joinPath(path, '.config'))
.then(async blob => { .then(async blob => {
if (cancelled) return; if (cancelled) return;
@ -904,7 +903,7 @@ export default function MediaManager({ initialPath, rootPath, title, config, set
await createFolder(joinPath(path, name), true); await createFolder(joinPath(path, name), true);
toast.success(`Created folder "${name}"`); toast.success(`Created folder "${name}"`);
setShowNewFolder(false); setNewFolderName(''); setShowNewFolder(false); setNewFolderName('');
navigateTo(joinPath(path, name)); void load(joinPath(path, name));
} catch (e: any) { toast.error(`Failed to create folder: ${e?.message ?? e}`); } } catch (e: any) { toast.error(`Failed to create folder: ${e?.message ?? e}`); }
}; };
@ -1046,14 +1045,14 @@ export default function MediaManager({ initialPath, rootPath, title, config, set
})} })}
</div> </div>
{folderConfig !== null && ( {folderConfig !== null && (
<button onClick={() => void handleConfigureFolder()} className="p-1 rounded hover:bg-green-100 text-green-500 flex-shrink-0" title="Edit Folder Config"> <button onClick={() => void handleConfigureFolder()} className="p-1 rounded hover:bg-green-100 text-green-500 flex-shrink-0" title="Folder has .config — click to edit">
<SlidersHorizontal className="w-3.5 h-3.5" strokeWidth={3} /> <SlidersHorizontal className="w-3.5 h-3.5" strokeWidth={3} />
</button> </button>
)} )}
</div> </div>
{(folderConfig?.['base_url']) && ( {(folderConfig?.['base_url']) && (
<div className="text-xs text-neutral-400 mt-0.5 truncate"> <div className="text-xs text-neutral-400 mt-0.5 truncate">
{folderConfig?.['base_url']} Base: {folderConfig?.['base_url']}
</div> </div>
)} )}