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`};
position: relative;
img {
object-fit: cover;
border-radius: 50%;
width: 100%;
height: 100%;
+2 -1
View File
@@ -31,12 +31,13 @@ const StyledMsg = styled.div`
&.readonly:hover {
background: none;
}
.avatar {
> .avatar {
flex-shrink: 0;
cursor: pointer;
width: 40px;
height: 40px;
img {
object-fit: cover;
width: 100%;
height: 100%;
border-radius: 50%;
+1
View File
@@ -13,6 +13,7 @@ const StyledWrapper = styled.div`
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
}
.name {
user-select: text;
+1 -1
View File
@@ -17,7 +17,7 @@ const StyledTextarea = styled.textarea`
background-color: #f9fafb;
}
&::placeholder {
color: #78787c;
color: #d1d5db;
}
`;