Skip to content

Commit

Permalink
fix: move doc.dir to plugin and remove the extra div that was affecti…
Browse files Browse the repository at this point in the history
…ng vis layout
  • Loading branch information
jenniferarnesen committed Sep 26, 2024
1 parent 16105c2 commit 00c7101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/components/Item/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ export const Item = (props) => {
const engine = useDataEngine()
const GridItem = getGridItem(props.item.type)

return (
<div dir={document.dir}>
<GridItem apps={apps} {...props} engine={engine} />
</div>
)
return <GridItem apps={apps} {...props} engine={engine} />
}

Item.propTypes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const IframePlugin = ({
}

return (
<div className={classes.wrapper}>
<div className={classes.wrapper} dir={document.dir}>
{iframeSrc ? (
<iframe
ref={iframeRef}
Expand Down

0 comments on commit 00c7101

Please sign in to comment.