Фиксы
This commit is contained in:
@ -456,14 +456,15 @@ async function fixEmotesPadding($messageElement, $parentElement, details, functi
|
|||||||
let $contentElement = $messageElement.find('content').eq(0);
|
let $contentElement = $messageElement.find('content').eq(0);
|
||||||
|
|
||||||
$contentElement.find('.emote').each(function () {
|
$contentElement.find('.emote').each(function () {
|
||||||
let previousSibling = this.previousSibling.nodeValue;
|
let $emote = $(this).eq(0);
|
||||||
let nextSibling = this.nextSibling.nodeValue;
|
let $previousEmote = $emote.prev('span.emote').eq(0);
|
||||||
|
let $nextEmote = $emote.next('span.emote').eq(0);
|
||||||
|
|
||||||
if (previousSibling && previousSibling.trim() === '') {
|
if ($previousEmote.length) {
|
||||||
this.classList.add('emote-left');
|
this.classList.add('emote-left');
|
||||||
};
|
};
|
||||||
|
|
||||||
if (nextSibling && nextSibling.trim() === '') {
|
if ($nextEmote.length) {
|
||||||
this.classList.add('emote-right');
|
this.classList.add('emote-right');
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@ -8,9 +8,9 @@
|
|||||||
--font-family-1: "Montserrat", serif;
|
--font-family-1: "Montserrat", serif;
|
||||||
|
|
||||||
/* Emotes */
|
/* Emotes */
|
||||||
--emote-size: calc(var(--font-size) * 2);
|
--emote-size: 100px;
|
||||||
--emote-size-xl: calc(var(--font-size) * 4);
|
--emote-size-xl: calc(var(--emote-size) * 2);
|
||||||
--emote-size-xxl: calc(var(--font-size) * 8);
|
--emote-size-xxl: calc(var(--emote-size-xl) * 2);
|
||||||
|
|
||||||
/* Badges */
|
/* Badges */
|
||||||
--badge-size: 25px;
|
--badge-size: 25px;
|
||||||
@ -60,11 +60,11 @@ content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.emote.emote-left {
|
.emote.emote-left {
|
||||||
margin-left: -5.5px;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.emote.emote-right {
|
.emote.emote-right {
|
||||||
margin-right: -5.5px;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.emote img {
|
.emote img {
|
||||||
@ -262,7 +262,7 @@ message bottom content {
|
|||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
background: linear-gradient(to bottom, transparent calc(100% - 20px), var(--primary) calc(100% - 19.99px), var(--primary)), var(--bg);
|
background: linear-gradient(to bottom, transparent calc(100% - 20px), var(--primary) calc(100% - 19.99px), var(--primary)), var(--bg);
|
||||||
border-radius: inherit;
|
border-radius: inherit;
|
||||||
padding: 55px 35px;
|
padding: 45px 35px 55px;
|
||||||
}
|
}
|
||||||
|
|
||||||
message bottom footer {
|
message bottom footer {
|
||||||
|
|||||||
Reference in New Issue
Block a user