This commit is contained in:
Manav Rathi
2024-08-23 10:43:52 +05:30
parent f3dae23e2a
commit 467dccf8bb

View File

@@ -1,3 +1,4 @@
import { EllipsizedTypography } from "@/base/components/Typography";
import { ensureElectron } from "@/base/electron";
import { basename, dirname } from "@/base/file";
import type { CollectionMapping, FolderWatch } from "@/base/types/ipc";
@@ -307,15 +308,11 @@ const EntryHeading: React.FC<EntryHeadingProps> = ({ watch }) => {
};
const FolderPath: React.FC<React.PropsWithChildren> = ({ children }) => (
<FolderPath_ variant="small">{children}</FolderPath_>
<EllipsizedTypography variant="small" color="text.muted">
{children}
</EllipsizedTypography>
);
const FolderPath_ = styled(Typography)(({ theme }) => ({
overflow: "hidden",
textOverflow: "ellipsis",
color: theme.colors.text.muted,
}));
interface EntryOptionsProps {
confirmStopWatching: () => void;
}