1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-09 07:40:53 +00:00
* Fixed: Bug causing link previews to fail to load correctly.
This commit is contained in:
SirStendec 2023-10-12 14:06:40 -04:00
parent 5b65f6b735
commit 60e4edf7c2
4 changed files with 11 additions and 9 deletions

View file

@ -61,16 +61,16 @@ function applySpacing(term, token, classes, styles) {
const thing = term === 'pd' ? 'padding' : 'margin';
if ( mode === '' )
styles[thing] = value;
if ( mode === 'x' || mode === 'l' )
if ( mode === '-x' || mode === '-l' )
styles[`${thing}-left`] = value;
if ( mode === 'x' || mode === 'r' )
if ( mode === '-x' || mode === '-r' )
styles[`${thing}-right`] = value;
if ( mode === 'y' || mode === 't' )
if ( mode === '-y' || mode === '-t' )
styles[`${thing}-top`] = value;
if ( mode === 'y' || mode === 'b' )
if ( mode === '-y' || mode === '-b' )
styles[`${thing}-bottom`] = value;
}
}
@ -501,7 +501,9 @@ TOKEN_TYPES.gallery = function(token, createElement, ctx) {
if ( ! token.items )
return null;
let items = token.items.map(item => renderTokens(item, createElement, ctx)).filter(x => x);
let items = token.items
.map(item => renderTokens(item, createElement, ctx))
.filter(x => x);
if ( ! items.length )
return null;