Skip to content

armgit / ente

Public Imported from GitHub
0

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

remove-comments

Aswin Asok2ada3eda299f
diff --git a/web/apps/photos/src/components/TakeoutOptions.tsx b/web/apps/photos/src/components/TakeoutOptions.tsx
index 7cae7d4f47..89b872898e 100644
--- a/web/apps/photos/src/components/TakeoutOptions.tsx
+++ b/web/apps/photos/src/components/TakeoutOptions.tsx
@@ -20,13 +20,6 @@ import {
import { t } from "i18next";
import React from "react";
-/**
- * Title style for the takeout options surface.
- *
- * Per the mobile design, this second-level sheet uses the app's base font for
- * its title (unlike the top-level options titles, which keep the display
- * font); the desktop dialog keeps the display font.
- */
const optionsTitleSx = {
fontFamily: "'Outfit Variable', sans-serif",
fontSize: "24px",
diff --git a/web/apps/photos/src/components/Upload.tsx b/web/apps/photos/src/components/Upload.tsx
index 89f8613f0f..bcf38705a4 100644
--- a/web/apps/photos/src/components/Upload.tsx
+++ b/web/apps/photos/src/components/Upload.tsx
@@ -1530,9 +1530,6 @@ const UploadTypeSelector: React.FC<UploadTypeSelectorProps> = ({
[theme.breakpoints.down(360)]: { p: 0 },
}),
uploadSheetPaperSx,
- // The ":has()" selector above outweighs the media query
- // styles in uploadSheetPaperSx; re-assert the sheet
- // shape at matching specificity.
{
[uploadSheetMediaQuery]: {
"&&": {
diff --git a/web/packages/gallery/components/UploadCompletion.tsx b/web/packages/gallery/components/UploadCompletion.tsx
index c29060dcb2..9955b9aff9 100644
--- a/web/packages/gallery/components/UploadCompletion.tsx
+++ b/web/packages/gallery/components/UploadCompletion.tsx
@@ -45,7 +45,6 @@ export function UploadCompletion({
const isSheet = useIsUploadSheet();
const handleClose: DialogProps["onClose"] = (_, reason) => {
- // On mobile, tapping the scrim also dismisses the sheet.
if (reason != "backdropClick" || isSheet) onClose();
};
diff --git a/web/packages/gallery/components/upload-progress/UploadFileList.tsx b/web/packages/gallery/components/upload-progress/UploadFileList.tsx
index 6876c1895c..26da6a5f3c 100644
--- a/web/packages/gallery/components/upload-progress/UploadFileList.tsx
+++ b/web/packages/gallery/components/upload-progress/UploadFileList.tsx
@@ -241,8 +241,6 @@ const uploadRowSx = (theme: Theme) => ({
gridTemplateColumns: "1fr",
gap: 1,
"& > :nth-of-type(2)": {
- // Align the progress bar with the file name text (36px icon +
- // 12px gap) and let it fill the remaining width.
pl: "48px",
},
},
diff --git a/web/packages/gallery/components/upload-progress/UploadProgressDialog.tsx b/web/packages/gallery/components/upload-progress/UploadProgressDialog.tsx
index a47ccef869..0c67e7753a 100644
--- a/web/packages/gallery/components/upload-progress/UploadProgressDialog.tsx
+++ b/web/packages/gallery/components/upload-progress/UploadProgressDialog.tsx
@@ -34,7 +34,6 @@ export function UploadProgressDialog() {
const handleClose: DialogProps["onClose"] = (_, reason) => {
if (reason == "backdropClick") {
- // On mobile, tapping the scrim minimizes the sheet.
if (isSheet) setExpanded(false);
return;
}
diff --git a/web/packages/gallery/components/upload-progress/bottom-sheet.ts b/web/packages/gallery/components/upload-progress/bottom-sheet.ts
index 39e925dccc..cf04e7514a 100644
--- a/web/packages/gallery/components/upload-progress/bottom-sheet.ts
+++ b/web/packages/gallery/components/upload-progress/bottom-sheet.ts
@@ -1,29 +1,9 @@
import { useMediaQuery } from "@mui/material";
-/**
- * The media query below which the upload progress surfaces switch to their
- * mobile presentation: dialogs become full width bottom sheets, and the
- * minimized pill docks above the bottom edge.
- *
- * This matches the cutoff at which the upload progress internals (summary
- * grid, stat grid, in-progress rows) already reflow, so the sheet switch and
- * those reflows engage together.
- */
export const uploadSheetMediaQuery = "@media (max-width: 620px)";
-/**
- * Return `true` if the viewport is narrow enough that the upload progress
- * dialogs should be presented as bottom sheets.
- */
export const useIsUploadSheet = () => useMediaQuery(uploadSheetMediaQuery);
-/**
- * Mobile overrides that convert a dialog's paper into a bottom sheet.
- *
- * Layer this on top of the dialog's existing paper sx (which retains the
- * surface color, border and 20px radius); above {@link uploadSheetMediaQuery}
- * it has no effect.
- */
export const uploadSheetPaperSx = {
[uploadSheetMediaQuery]: {
position: "fixed",
diff --git a/web/packages/gallery/components/upload/DefaultOptions.tsx b/web/packages/gallery/components/upload/DefaultOptions.tsx
index 84140c12d0..400c233463 100644
--- a/web/packages/gallery/components/upload/DefaultOptions.tsx
+++ b/web/packages/gallery/components/upload/DefaultOptions.tsx
@@ -494,12 +494,6 @@ function PendingIndicator(): React.JSX.Element {
return <CircularProgress size={18} sx={{ color: "stroke.muted" }} />;
}
-/**
- * Title style for the upload options surfaces.
- *
- * Per the mobile design, these titles keep the display font in both the
- * desktop dialog and the bottom sheet presentations.
- */
const optionsTitleSx = {
fontFamily: "'Outfit Variable', sans-serif",
fontSize: "24px",