File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 width : 100% ;
6060 height : 100% ;
6161 border-radius : var (--radius );
62+ }
63+
64+ > .inner ::before {
65+ content : " " ;
66+
67+ position : absolute ;
68+ z-index : -1 ;
69+ inset : 0 ;
70+
71+ border-radius : var (--radius );
6272
6373 background-image : linear-gradient (var (--color-white ) -300% , var (--color-user ));
6474 }
6575
76+ & .with-media > .inner ::before {
77+ inset : 1px ;
78+ }
79+
6680 & __media {
6781 width : 100% ;
6882 height : 100% ;
160174 --color-user : var (--color-deleted-account );
161175 }
162176
163- & .premium-gradient-bg > .inner {
177+ & .premium-gradient-bg > .inner ::before {
164178 background-image : var (--premium-gradient );
165179 }
166180
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ const Avatar = ({
281281 isRoundedRect && 'forum' ,
282282 asMessageBubble && 'message-bubble' ,
283283 ( photo || webPhoto ) && 'force-fit' ,
284+ ( ! specialIcon && hasBlobUrl ) && 'with-media' ,
284285 ( ( withStory && realPeer ?. hasStories ) || forPremiumPromo ) && 'with-story-circle' ,
285286 withStorySolid && realPeer ?. hasStories && 'with-story-solid' ,
286287 withStorySolid && forceFriendStorySolid && 'close-friend' ,
You can’t perform that action at this time.
0 commit comments