diff --git a/frontend/src/app/components/editor/DirectoryBrowser.tsx b/frontend/src/app/components/editor/DirectoryBrowser.tsx index 3a45bf48..0934fe65 100644 --- a/frontend/src/app/components/editor/DirectoryBrowser.tsx +++ b/frontend/src/app/components/editor/DirectoryBrowser.tsx @@ -11,7 +11,7 @@ import List from '@mui/material/List'; import ListItemButton from '@mui/material/ListItemButton'; import ListItemIcon from '@mui/material/ListItemIcon'; import ListItemText from '@mui/material/ListItemText'; -import CircularProgress from '@mui/material/CircularProgress'; +import { Skeleton } from '@/app/components/feedback/Loading'; import IconButton from '@mui/material/IconButton'; import Breadcrumbs from '@mui/material/Breadcrumbs'; import Link from '@mui/material/Link'; @@ -242,8 +242,11 @@ const DirectoryBrowser: React.FC = ({ open, onClose, onSe scrollbarColor: `${c.border.medium} transparent`, }}> {loading ? ( - - + // Row-shaped skeletons instead of a spinner: the list keeps its silhouette while loading. + + {[0, 1, 2, 3].map((i) => ( + + ))} ) : !hasEntries ? (