fix: Flash of misaligned floating images upon loading

This commit is contained in:
Tom Moor
2022-11-19 20:18:55 -05:00
parent c27987569b
commit 1f49bd167d

View File

@@ -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) {