Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove hardcoded black

Manav Rathi61cd5de7255d
diff --git a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
index 4396b9ee9f..b70dbfc715 100644
--- a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
@@ -1014,13 +1014,14 @@ const FreehandCropRegion = forwardRef(
></div>
))}
- <div
- style={{
+ <Box
+ sx={{
position: "absolute",
height: "10px",
width: "10px",
- backgroundColor: "white",
- border: "1px solid black",
+ backgroundColor: "fixed.white",
+ border: "1px solid",
+ borderColor: "fixed.black",
right: "-5px",
bottom: "-5px",
cursor: "se-resize",
@@ -1029,7 +1030,7 @@ const FreehandCropRegion = forwardRef(
e.preventDefault();
setIsDragging(true);
}}
- ></div>
+ ></Box>
</div>
</>
);
diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsx
index e97fbf9389..ee5ca4fa30 100644
--- a/web/apps/photos/src/pages/index.tsx
+++ b/web/apps/photos/src/pages/index.tsx
@@ -1,5 +1,6 @@
import { LoginContents } from "@/accounts/components/LoginContents";
import { SignUpContents } from "@/accounts/components/SignUpContents";
+import { CenteredFill } from "@/base/components/containers";
import { EnteLogo } from "@/base/components/EnteLogo";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
@@ -24,7 +25,7 @@ const Page: React.FC = () => {
const [loading, setLoading] = useState(true);
const [showLogin, setShowLogin] = useState(true);
- const [host, setHost] = useState<string | undefined>();
+ const [host, setHost] = useState<string | undefined>(undefined);
const router = useRouter();
@@ -202,28 +203,21 @@ const TappableContainer: React.FC<
};
return (
- <TappableContainer_ onClick={handleClick}>
- <>
- <DevSettings open={showDevSettings} onClose={handleClose} />
- {children}
- </>
- </TappableContainer_>
+ <CenteredFill
+ sx={{
+ bgcolor: "background.default",
+ "@media (width <= 1024px)": {
+ flexDirection: "column",
+ },
+ }}
+ onClick={handleClick}
+ >
+ <DevSettings open={showDevSettings} onClose={handleClose} />
+ {children}
+ </CenteredFill>
);
};
-const TappableContainer_ = styled("div")`
- flex: 1;
- display: flex;
-
- align-items: center;
- justify-content: center;
- background-color: #000;
-
- @media (width <= 1024px) {
- flex-direction: column;
- }
-`;
-
/**
* Disable the ability to set the custom server when we're running on our own
* production deployment.
diff --git a/web/apps/photos/src/styles/global.css b/web/apps/photos/src/styles/global.css
index bc29597f04..f04c02697a 100644
--- a/web/apps/photos/src/styles/global.css
+++ b/web/apps/photos/src/styles/global.css
@@ -60,7 +60,7 @@ body {
a split second when an image is zoomed on to for the first time (this can
be used as a test to see when this workaround is no longer required).
*/
- background-color: black;
+ background-color: var(--mui-palette-background-default);
}
.pswp__button--arrow--left,