Avatar: Fix icon sizes & missing letters (#3485)
This commit is contained in:
parent
823fd9add7
commit
4e87c56fb9
@ -27,7 +27,7 @@
|
||||
}
|
||||
|
||||
&__icon {
|
||||
font-size: 1.25rem;
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
&.size-micro {
|
||||
@ -99,10 +99,6 @@
|
||||
&.size-large {
|
||||
font-size: 1.3125rem;
|
||||
|
||||
.icon {
|
||||
font-size: 1.625rem;
|
||||
}
|
||||
|
||||
.emoji {
|
||||
width: 1.3125rem;
|
||||
height: 1.3125rem;
|
||||
@ -114,10 +110,6 @@
|
||||
height: 7.5rem;
|
||||
font-size: 3.5rem;
|
||||
|
||||
&__i {
|
||||
font-size: 6rem;
|
||||
}
|
||||
|
||||
.emoji {
|
||||
width: 3.5rem;
|
||||
height: 3.5rem;
|
||||
|
||||
@ -71,8 +71,9 @@ const Avatar: FC<OwnProps> = ({
|
||||
// eslint-disable-next-line no-null/no-null
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
const videoLoopCountRef = useRef(0);
|
||||
const user = peer && isUserId(peer.id) ? peer as ApiUser : undefined;
|
||||
const chat = peer && !isUserId(peer.id) ? peer as ApiChat : undefined;
|
||||
const isPeerChat = peer && 'title' in peer;
|
||||
const user = peer && !isPeerChat ? peer as ApiUser : undefined;
|
||||
const chat = peer && isPeerChat ? peer as ApiChat : undefined;
|
||||
const isDeleted = user && isDeletedUser(user);
|
||||
const isReplies = peer && isChatWithRepliesBot(peer.id);
|
||||
const isForum = chat?.isForum;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user