diff --git a/client/src/App.css b/client/src/App.css index 6b38d0b..b386a25 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -148,8 +148,6 @@ div { .Face .Image { position: relative; box-sizing: border-box; - /*width: 8rem; - height: 8rem;*/ display: flex; justify-content: center; } @@ -173,11 +171,18 @@ div { align-items: flex-start; } +.Image img { + object-fit: cover; /* contain */ + width: 100%; + height: 100%; + min-width: 8rem; + min-height: 8rem; +} + .Cluster .Faces { display: grid; gap: 0.25rem; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); width: 100%; - height: 100%; flex-wrap: wrap; } \ No newline at end of file diff --git a/client/src/App.tsx b/client/src/App.tsx index 249128c..5a493aa 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -10,7 +10,6 @@ import { } from "react-router-dom"; import { VirtuosoGrid } from 'react-virtuoso' import moment from 'moment'; -//import equal from "fast-deep-equal"; import './App.css'; const base = process.env.PUBLIC_URL; /* /identities -- set in .env */ @@ -130,6 +129,7 @@ const Photo = ({ photoId, onFaceClick }: any) => { return (