Skip to content

Commit 049998b

Browse files
author
Aleksandar Cakalic
committed
fix: set initial width and height styles for iframe
1 parent 63c407c commit 049998b

File tree

1 file changed

+4
-0
lines changed
  • src/connectors/webwallet/starknetWindowObject

1 file changed

+4
-0
lines changed

src/connectors/webwallet/starknetWindowObject/wormhole.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { ENABLE_POPUP_HEIGHT, ENABLE_POPUP_WIDTH } from "../helpers/popupSizes"
2+
13
const applyModalStyle = (iframe: HTMLIFrameElement) => {
24
iframe.style.display = "none"
35
iframe.style.borderRadius = "40px"
@@ -8,6 +10,8 @@ const applyModalStyle = (iframe: HTMLIFrameElement) => {
810
iframe.style.transform = "translate(-50%, -50%)"
911
iframe.style.backgroundColor = "transparent"
1012
iframe.style.zIndex = "999999"
13+
iframe.style.height = `${ENABLE_POPUP_HEIGHT}px`
14+
iframe.style.width = `${ENABLE_POPUP_WIDTH}px`
1115
}
1216

1317
export const showModal = (

0 commit comments

Comments
 (0)