Skip to content

armgit / ente

Public Imported from GitHub
0

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

style-corrections

Aswin Asokcd21aa32d598
diff --git a/web/packages/base/components/SingleInputForm.tsx b/web/packages/base/components/SingleInputForm.tsx
index 8bdc04169a..de7ebaded4 100644
--- a/web/packages/base/components/SingleInputForm.tsx
+++ b/web/packages/base/components/SingleInputForm.tsx
@@ -269,8 +269,8 @@ const greenAccentHover = "#07ad21";
const errorColor = "#fa1336";
const v2LabelSx = {
- fontSize: 12,
- lineHeight: "16px",
+ fontSize: 14,
+ lineHeight: "20px",
fontWeight: 500,
color: "text.muted",
};
@@ -286,11 +286,14 @@ const v2InputSx: SxProps<Theme> = (theme) => ({
fontSize: 14,
fontWeight: 500,
color: "text.base",
- "&.Mui-focused": { borderColor: greenAccent },
- "&.Mui-error": { borderColor: errorColor },
+ "&.Mui-focused": { borderColor: "rgba(0 0 0 / 0.08)" },
"& input": { padding: 0, height: "auto" },
"& input::placeholder": { color: "text.muted", opacity: 1 },
- ...theme.applyStyles("dark", { backgroundColor: "#282828" }),
+ ...theme.applyStyles("dark", {
+ backgroundColor: "#282828",
+ "&.Mui-focused": { borderColor: "rgba(255 255 255 / 0.18)" },
+ }),
+ "&.Mui-error": { borderColor: errorColor },
});
const v2HelperSx = (isError: boolean) => (theme: Theme) => ({
fontSize: 12,
diff --git a/web/packages/new/photos/components/CollectionSelectorV2.tsx b/web/packages/new/photos/components/CollectionSelectorV2.tsx
index 26a9ee5b9e..716e0d944b 100644
--- a/web/packages/new/photos/components/CollectionSelectorV2.tsx
+++ b/web/packages/new/photos/components/CollectionSelectorV2.tsx
@@ -297,16 +297,13 @@ const CollectionSummaryButtonV2: React.FC<CollectionSummaryButtonV2Props> = ({
};
const CreateAlbumTile: React.FC<{ onClick: () => void }> = ({ onClick }) => (
- <TileButtonV2 onClick={onClick} sx={{ borderRadius: "16px" }}>
+ <TileButtonV2
+ aria-label={t("new_album")}
+ onClick={onClick}
+ sx={{ borderRadius: "16px" }}
+ >
<CreateTileInner>
- <Typography
- sx={{ fontSize: 14, lineHeight: "20px", fontWeight: 500 }}
- >
- {t("new_album")}
- </Typography>
- <Box sx={createTileIconSx}>
- <AddIcon />
- </Box>
+ <AddIcon />
</CreateTileInner>
</TileButtonV2>
);
@@ -316,23 +313,17 @@ const CreateTileInner = styled("span")(({ theme }) => ({
inset: 0,
padding: 10,
display: "flex",
- flexDirection: "column",
+ alignItems: "center",
+ justifyContent: "center",
border: "1px dashed",
borderColor: theme.vars.palette.stroke.muted,
borderRadius: 16,
- color: theme.vars.palette.text.base,
+ color: theme.vars.palette.text.muted,
"&:hover": { borderColor: "rgba(0 0 0 / 0.45)" },
...theme.applyStyles("dark", {
"&:hover": { borderColor: "rgba(255 255 255 / 0.45)" },
}),
}));
-const createTileIconSx = {
- flex: 1,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- color: "text.muted",
-};
interface SearchFieldV2Props {
value: string;