Skip to content

armgit / ente

Public Imported from GitHub
0

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

Mode switcher

Manav Rathibef3d0949c95
diff --git a/web/packages/new/photos/components/Gallery/BarImpl.tsx b/web/packages/new/photos/components/Gallery/BarImpl.tsx
index 6d3f14dc0f..0401e02c99 100644
--- a/web/packages/new/photos/components/Gallery/BarImpl.tsx
+++ b/web/packages/new/photos/components/Gallery/BarImpl.tsx
@@ -320,7 +320,7 @@ const ModeIndicator: React.FC<
return (
<Stack direction="row" sx={{ gap: "10px" }}>
<AlbumModeButton onClick={() => onChangeMode("albums")}>
- {t("albums")}
+ <Typography>{t("albums")}</Typography>
</AlbumModeButton>
<Typography>{t("people")}</Typography>
</Stack>
@@ -329,13 +329,18 @@ const ModeIndicator: React.FC<
const AlbumModeButton = styled("button")(
({ theme }) => `
+ /* Reset some button defaults that are unwanted here. */
background: transparent;
border: 0;
padding: 0;
+ /* Not sure why the button's default pointer is not coming into effect
+ automatically. */
+ cursor: pointer;
font: inherit;
- /* Hover indication */
- color: ${theme.colors.text.muted}
- && :hover {
+ p {
+ color: ${theme.colors.text.muted}
+ }
+ p:hover {
color: ${theme.colors.text.base};
}
`,