Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web] Handle the first click on mobile devices

Manav Rathi217d4d950ecb
diff --git a/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx b/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx
index 718fb628d1..02b4595d45 100644
--- a/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx
+++ b/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx
@@ -45,7 +45,6 @@ const Check = styled("input")<{ $active: boolean }>`
position: absolute;
z-index: 10;
left: 0;
- opacity: 0;
outline: none;
cursor: pointer;
@media (pointer: coarse) {
@@ -93,8 +92,10 @@ const Check = styled("input")<{ $active: boolean }>`
border-right: 2px solid #ddd;
border-bottom: 2px solid #ddd;
}
- ${(props) => props.$active && "opacity: 0.5 "};
+ visibility: hidden;
+ ${(props) => props.$active && "visibility: visible; opacity: 0.5;"};
&:checked {
+ visibility: visible;
opacity: 1 !important;
}
`;