restyle ant-avatar to set border-radius

This commit is contained in:
srgooglo 2022-03-15 04:24:37 +01:00
parent 925e5ee673
commit fbb1f9a62b
3 changed files with 9 additions and 21 deletions

View File

@ -46,7 +46,7 @@ function PostHeader(props) {
return <div className="postHeader"> return <div className="postHeader">
<div className="userInfo"> <div className="userInfo">
<div className="avatar"> <div className="avatar">
<antd.Avatar src={props.postData.user?.avatar} /> <antd.Avatar shape="square" src={props.postData.user?.avatar} />
</div> </div>
<div className="info"> <div className="info">
<div> <div>

View File

@ -272,24 +272,4 @@
// .actionsIndicator { // .actionsIndicator {
// opacity: 0; // opacity: 0;
// } // }
}
@keyframes fadeActionsIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeActionOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
} }

View File

@ -155,6 +155,10 @@ body {
user-select : none; user-select : none;
-webkit-user-select: none; -webkit-user-select: none;
} }
.postCard {
min-width: 30px;
}
} }
.fade-transverse-active { .fade-transverse-active {
@ -259,6 +263,10 @@ body {
} }
} }
.ant-avatar-square {
border-radius: 12px;
}
*:not(input):not(textarea) { *:not(input):not(textarea) {
-webkit-user-select : none; -webkit-user-select : none;
/* disable selection/Copy of UIWebView */ /* disable selection/Copy of UIWebView */