feat(MediaManager): improve breadcrumb layout for better responsiveness and folder configuration access
This commit is contained in:
parent
c6bc1fdd52
commit
dfe87c05a1
|
|
@ -1002,7 +1002,8 @@ export default function MediaManager({ initialPath, rootPath, title, config, set
|
|||
</div>
|
||||
|
||||
{/* Breadcrumb */}
|
||||
<div className="flex items-center gap-1 text-sm text-neutral-600 overflow-x-auto">
|
||||
<div className="flex items-center gap-1 text-sm text-neutral-600">
|
||||
<div className="flex items-center gap-1 overflow-x-auto flex-1 min-w-0">
|
||||
<button onClick={() => navigateTo(rootPath ?? '/')} className="p-1 rounded hover:bg-neutral-100 flex-shrink-0" title="Root">
|
||||
<Home className="w-4 h-4" />
|
||||
</button>
|
||||
|
|
@ -1038,6 +1039,12 @@ export default function MediaManager({ initialPath, rootPath, title, config, set
|
|||
);
|
||||
})}
|
||||
</div>
|
||||
{folderConfig !== null && (
|
||||
<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} />
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
{(folderConfig?.['base_url']) && (
|
||||
<div className="text-xs text-neutral-400 mt-0.5 truncate">
|
||||
Base: {folderConfig?.['base_url']}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user