This commit is contained in:
Mirco Wittrien 2022-10-01 18:34:07 +02:00
parent 7e4ce8eddb
commit 674f1797bf
2 changed files with 8 additions and 6 deletions

View File

@ -413,7 +413,6 @@
"FormText": [".type", ".DEFAULT"],
"FormTitle": [".tag", "variant:\"text"]
}},
"FriendsEmptyState": {"strings": ["FriendsEmptyState", "FriendsSections"], "value": "default"},
"GuildComponents": {
"children": {
"Badge": {"name": "GuildBadge"},
@ -428,9 +427,12 @@
}
},
"Header": {"props": ["Sizes", "Tags"]},
"Heading": {"name": "Heading"},
"HeaderBarComponents": {"name": "HeaderBarContainer"},
"Image": {"props": ["ImageReadyStates"]},
"Heading": {"strings": ["data-excessive", ".defaultColor"]},
"HeaderBarComponents": {"strings": ["isAuthenticated", ".HEADER_BAR"]},
"ImageComponents": {"strings": ["containerRef", "zoomable", "LOADING"], "exported": false, "value": "exports", "map": {
"Image": ["containerRef"],
"ImageReadyStates": ["LOADING", "ERROR"]
}},
"ImageModal": {"name": "ImageModal"},
"LazyImage": {"name": "LazyImage"},
"ListHeader": {"name": "ListSectionItem"},

View File

@ -1208,8 +1208,8 @@ module.exports = (_ => {
if (e.instance.props.resized) {
let embed = BDFDB.DOMUtils.getParent(BDFDB.dotCN.embedfull, e.node);
if (embed) embed.style.setProperty("max-width", "unset", "important");
if (e.instance.state.readyState != BDFDB.LibraryComponents.Image.ImageReadyStates.READY) {
e.instance.state.readyState = BDFDB.LibraryComponents.Image.ImageReadyStates.READY;
if (e.instance.state.readyState != BDFDB.LibraryComponents.ImageComponents.ImageReadyStates.READY) {
e.instance.state.readyState = BDFDB.LibraryComponents.ImageComponents.ImageReadyStates.READY;
BDFDB.ReactUtils.forceUpdate(e.instance);
}
}