chore: image object-fit

This commit is contained in:
zerosoul
2022-06-10 22:50:12 +08:00
parent f5f506edb7
commit df61906a20
4 changed files with 5 additions and 0 deletions
+1
View File
@@ -16,6 +16,7 @@ const StyledWrapper = styled.div`
background-color: #eee; background-color: #eee;
/* border: 1px solid #eee; */ /* border: 1px solid #eee; */
img { img {
object-fit: cover;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
+1
View File
@@ -28,6 +28,7 @@ const StyledWrapper = styled.div`
width: 32px; width: 32px;
height: 32px; height: 32px;
border-radius: 50%; border-radius: 50%;
object-fit: cover;
} }
.toggle { .toggle {
} }
+2
View File
@@ -26,6 +26,8 @@ const StyledWrapper = styled.div`
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover;
border-radius: 50%;
} }
} }
.info { .info {
+1
View File
@@ -9,6 +9,7 @@ const StyledWrapper = styled.div`
width: 32px; width: 32px;
height: 32px; height: 32px;
img { img {
object-fit: cover;
border-radius: 50%; border-radius: 50%;
width: 100%; width: 100%;
height: 100%; height: 100%;