Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Visual fixes

Manav Rathi141d761ecbee
diff --git a/web/apps/photos/src/components/UploadProgress.tsx b/web/apps/photos/src/components/UploadProgress.tsx
index fb0457e261..71fba1592c 100644
--- a/web/apps/photos/src/components/UploadProgress.tsx
+++ b/web/apps/photos/src/components/UploadProgress.tsx
@@ -150,11 +150,7 @@ const UploadProgressContext = createContext<UploadProgressContextT>({
});
const MinimizedUploadProgress: React.FC = () => (
- <Snackbar
- open
- anchorOrigin={{ horizontal: "right", vertical: "bottom" }}
- sx={(theme) => ({ boxShadow: theme.vars.palette.boxShadow.menu })}
- >
+ <Snackbar open anchorOrigin={{ horizontal: "right", vertical: "bottom" }}>
<Paper sx={{ width: "min(360px, 100svw)" }}>
<UploadProgressHeader />
</Paper>
@@ -178,9 +174,7 @@ const UploadProgressTitle: React.FC = () => {
<DialogTitle>
<SpaceBetweenFlex>
<Box>
- <Typography variant={expanded ? "h2" : "h3"}>
- {t("file_upload")}
- </Typography>
+ <Typography variant="h3">{t("file_upload")}</Typography>
<UploadProgressSubtitleText />
</Box>
<Box>
diff --git a/web/apps/photos/src/components/WatchFolder.tsx b/web/apps/photos/src/components/WatchFolder.tsx
index 5bf38ee759..57a038bd85 100644
--- a/web/apps/photos/src/components/WatchFolder.tsx
+++ b/web/apps/photos/src/components/WatchFolder.tsx
@@ -245,21 +245,22 @@ interface EntryHeadingProps {
watch: FolderWatch;
}
-const EntryHeading: React.FC<EntryHeadingProps> = ({ watch }) => {
- const folderPath = watch.folderPath;
-
- return (
- <Stack
- direction="row"
- sx={{ gap: 1, alignItems: "center", justifyContent: "flex-start" }}
- >
- <Typography sx={{ flex: 1 }}>{basename(folderPath)}</Typography>
- {watcher.isSyncingFolder(folderPath) && (
- <CircularProgress size={15} sx={{ color: "stroke.muted" }} />
- )}
- </Stack>
- );
-};
+const EntryHeading: React.FC<EntryHeadingProps> = ({
+ watch: { folderPath },
+}) => (
+ <Stack
+ direction="row"
+ sx={{ gap: 1.5, alignItems: "center", justifyContent: "flex-start" }}
+ >
+ <Typography>{basename(folderPath)}</Typography>
+ {watcher.isSyncingFolder(folderPath) && (
+ <CircularProgress
+ size={15}
+ sx={{ flexShrink: 0, color: "stroke.muted" }}
+ />
+ )}
+ </Stack>
+);
const FolderPath: React.FC<React.PropsWithChildren> = ({ children }) => (
<EllipsizedTypography variant="small" color="text.muted">