File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
packages/sdk-components-react/src Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -54,18 +54,21 @@ export const XmlNode = forwardRef<ElementRef<"div">, Props>(
5454 ) ;
5555
5656 return (
57- < div style = { { display : isTextChild ? "block" : "block" } } { ...props } >
57+ < div { ...props } >
5858 < span style = { { color : "rgb(16, 23, 233)" } } >
5959 <{ [ elementName , ...attributes ] . join ( " " ) } >
6060 </ span >
61- { childrenArray . length > 0 &&
62- ( isTextChild ? (
63- < span ref = { ref } > { children } </ span >
64- ) : (
65- < div ref = { ref } style = { { marginLeft : isTextChild ? 0 : "1rem" } } >
66- { children }
67- </ div >
68- ) ) }
61+ { childrenArray . length > 0 && (
62+ < div
63+ ref = { ref }
64+ style = { {
65+ display : isTextChild ? "inline" : "block" ,
66+ marginLeft : isTextChild ? 0 : "1rem" ,
67+ } }
68+ >
69+ { children }
70+ </ div >
71+ ) }
6972 < span style = { { color : "rgb(16, 23, 233)" } } >
7073 </{ elementName } >
7174 </ span >
You can’t perform that action at this time.
0 commit comments