fix: Flash of misaligned floating images upon loading
This commit is contained in:
@@ -120,12 +120,12 @@ const getLayoutAndTitle = (tokenTitle: string): TitleAttributes => {
|
||||
return attributes;
|
||||
}
|
||||
|
||||
if (IMAGE_CLASSES.includes(tokenTitle)) {
|
||||
attributes.layoutClass = tokenTitle;
|
||||
IMAGE_CLASSES.map((className) => {
|
||||
IMAGE_CLASSES.map((className) => {
|
||||
if (tokenTitle.includes(className)) {
|
||||
attributes.layoutClass = className;
|
||||
tokenTitle = tokenTitle.replace(className, "");
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
const match = tokenTitle.match(imageSizeRegex);
|
||||
if (match) {
|
||||
|
||||
Reference in New Issue
Block a user