fix: avatar object fit
This commit is contained in:
@@ -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%;
|
||||||
|
|||||||
@@ -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%;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const StyledTextarea = styled.textarea`
|
|||||||
background-color: #f9fafb;
|
background-color: #f9fafb;
|
||||||
}
|
}
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
color: #78787c;
|
color: #d1d5db;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user