forked from rDrama/rDrama
much better approach for handling large emojis in titles that doesnt break notifications generated from said titles
parent
e1853befaa
commit
2c682e68f8
|
@ -5512,10 +5512,6 @@ input[type=radio] ~ .custom-control-label::before {
|
||||||
height: 150px;
|
height: 150px;
|
||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
img[t] {
|
|
||||||
height: 40px !important;
|
|
||||||
width: 40px !important;
|
|
||||||
}
|
|
||||||
.emj, .emoji, .bigemoji, .emoji-md, .emoji-lg, img[alt^=":"]
|
.emj, .emoji, .bigemoji, .emoji-md, .emoji-lg, img[alt^=":"]
|
||||||
{
|
{
|
||||||
max-width: 150px !important;
|
max-width: 150px !important;
|
||||||
|
|
|
@ -229,7 +229,7 @@ def render_emoji(html, regexp, golden, emojis_used, b=False, is_title=False):
|
||||||
emoji = i.group(1).lower()
|
emoji = i.group(1).lower()
|
||||||
attrs = ''
|
attrs = ''
|
||||||
if b: attrs += ' b'
|
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 golden and len(emojis) <= 20 and ('marsey' in emoji or emoji in marseys_const2):
|
||||||
if random.random() < 0.0025: attrs += ' g'
|
if random.random() < 0.0025: attrs += ' g'
|
||||||
elif random.random() < 0.00125: attrs += ' glow'
|
elif random.random() < 0.00125: attrs += ' glow'
|
||||||
|
|
Loading…
Reference in New Issue