fix for inherited style

This commit is contained in:
monoid 2025-04-01 01:55:55 +09:00
parent 537f1592b1
commit a637617d5b

View file

@ -295,7 +295,7 @@ function VnodeToReact({ vnode }: { vnode: VNode }): React.ReactNode {
if (HTMLNonCHildrenComponentTable[vnode.tagName]) {
const Tag = HTMLNonCHildrenComponentTable[vnode.tagName] ?? "div";
const style = vnode.style;
return <Tag style={htmlStyleToReactStyle(style)} />;
}
// TODO: support svg
@ -360,7 +360,7 @@ function Content() {
{html}
</code>
{data &&
<div style={data.inheritedStyle}>
<div style={htmlStyleToReactStyle(data.inheritedStyle)}>
<VnodeToReact vnode={data.vnode} />
</div>
}