Skip to content

Commit

Permalink
feat(groupviewverytop.jsx): center image and make it square
Browse files Browse the repository at this point in the history
  • Loading branch information
junglesub committed Aug 6, 2024
1 parent f8d72de commit c3d11ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Mypage/GroupViewVeryTop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const ProfileImageBox = styled.div`
border: 1px solid black;
overflow: hidden;
img {
aspect-ratio: 1 / 1;
height: 100%;
object-fit: cover; /* Ensures the image covers the container */
object-position: center center; /* Centers the image */
Expand Down

0 comments on commit c3d11ab

Please sign in to comment.