much better approach for handling large emojis in titles that doesnt break notifications generated from said titles

pull/173/head
Aevann 2023-07-30 02:36:08 +03:00
parent e1853befaa
commit 2c682e68f8
2 changed files with 1 additions and 5 deletions

View File

@ -5512,10 +5512,6 @@ input[type=radio] ~ .custom-control-label::before {
height: 150px;
width: 150px;
}
img[t] {
height: 40px !important;
width: 40px !important;
}
.emj, .emoji, .bigemoji, .emoji-md, .emoji-lg, img[alt^=":"]
{
max-width: 150px !important;

View File

@ -229,7 +229,7 @@ def render_emoji(html, regexp, golden, emojis_used, b=False, is_title=False):
emoji = i.group(1).lower()
attrs = ''
if b: attrs += ' b'
if is_title: attrs += ' t'
if is_title: emoji = emoji.replace('#','')
if golden and len(emojis) <= 20 and ('marsey' in emoji or emoji in marseys_const2):
if random.random() < 0.0025: attrs += ' g'
elif random.random() < 0.00125: attrs += ' glow'