Skip to content

Commit

Permalink
fix(ui): set fixed width while iframe is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
zlumer committed Apr 26, 2023
1 parent b3d39ef commit 06f37c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slise/embed-react",
"version": "1.0.1",
"version": "1.0.2",
"description": "React component to embed Slise into your website",
"main": "./lib/index.js",
"files": [
Expand Down
13 changes: 12 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ export const SliseAd: React.FC<SliseAdProps> = props =>
data-ad-slot={props.slotId}
data-ad-pub={props.pub}
data-ad-format={props.format}
></ins>
>
<div
style={{
width: props.style?.width,
height: props.style?.height,
maxWidth: props.style?.maxWidth,
maxHeight: props.style?.maxHeight,
minWidth: props.style?.minWidth,
minHeight: props.style?.minHeight,
}}
></div>
</ins>
)
}

0 comments on commit 06f37c8

Please sign in to comment.