Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix alignment etc

Manav Rathi8a953cab88fd
diff --git a/web/packages/new/photos/components/PeopleList.tsx b/web/packages/new/photos/components/PeopleList.tsx
index 8ced5627e2..ba7711af59 100644
--- a/web/packages/new/photos/components/PeopleList.tsx
+++ b/web/packages/new/photos/components/PeopleList.tsx
@@ -96,7 +96,7 @@ export const AnnotatedFacePeopleList: React.FC<
<Typography variant="large" p={1}>
{t("people")}
</Typography>
- <AnnotatedFacePeopleContainer>
+ <FileFaceList>
{annotatedFaceIDs.map((annotatedFaceID) => (
<AnnotatedFaceButton
key={annotatedFaceID.faceID}
@@ -109,16 +109,18 @@ export const AnnotatedFacePeopleList: React.FC<
/>
</AnnotatedFaceButton>
))}
- </AnnotatedFacePeopleContainer>
+ </FileFaceList>
</>
);
};
-const AnnotatedFacePeopleContainer = styled("div")`
+const FileFaceList = styled("div")`
display: flex;
flex-wrap: wrap;
+ justify-content: center;
align-items: center;
gap: 5px;
+ margin: 5px;
`;
const AnnotatedFaceButton = styled(UnstyledButton)(
@@ -165,7 +167,7 @@ export const UnclusteredFaceList: React.FC<UnclusteredFaceListProps> = ({
{pt("Other faces")}
{/*t("UNIDENTIFIED_FACES") TODO-Cluster */}
</Typography>
- <UnclusteredFacesContainer>
+ <FileFaceList>
{faceIDs.map((faceID) => (
<UnclusteredFace key={faceID}>
<FaceCropImageView
@@ -174,28 +176,17 @@ export const UnclusteredFaceList: React.FC<UnclusteredFaceListProps> = ({
/>
</UnclusteredFace>
))}
- </UnclusteredFacesContainer>
+ </FileFaceList>
</>
);
};
-const UnclusteredFacesContainer = styled("div")`
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- align-items: center;
- margin-top: 5px;
- margin-bottom: 5px;
- overflow: auto;
-`;
-
const UnclusteredFace = styled("div")`
width: 112px;
height: 112px;
margin: 5px;
border-radius: 50%;
overflow: hidden;
- position: relative;
& > img {
width: 100%;
height: 100%;