fix: avatar object fit

This commit is contained in:
zerosoul
2022-06-09 23:26:35 +08:00
parent d49107b3ec
commit ec9bcb3233
4 changed files with 5 additions and 2 deletions
+1
View File
@@ -23,6 +23,7 @@ const StyledWrapper = styled.div`
height: ${({ size }) => `${size}px`}; height: ${({ size }) => `${size}px`};
position: relative; position: relative;
img { img {
object-fit: cover;
border-radius: 50%; border-radius: 50%;
width: 100%; width: 100%;
height: 100%; height: 100%;
+2 -1
View File
@@ -31,12 +31,13 @@ const StyledMsg = styled.div`
&.readonly:hover { &.readonly:hover {
background: none; background: none;
} }
.avatar { > .avatar {
flex-shrink: 0; flex-shrink: 0;
cursor: pointer; cursor: pointer;
width: 40px; width: 40px;
height: 40px; height: 40px;
img { img {
object-fit: cover;
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 50%; border-radius: 50%;
+1
View File
@@ -13,6 +13,7 @@ const StyledWrapper = styled.div`
width: 80px; width: 80px;
height: 80px; height: 80px;
border-radius: 50%; border-radius: 50%;
object-fit: cover;
} }
.name { .name {
user-select: text; user-select: text;
+1 -1
View File
@@ -17,7 +17,7 @@ const StyledTextarea = styled.textarea`
background-color: #f9fafb; background-color: #f9fafb;
} }
&::placeholder { &::placeholder {
color: #78787c; color: #d1d5db;
} }
`; `;