Skip to content

Commit 802510a

Browse files
committed
fix: ifram positioning
1 parent 7cc5ff9 commit 802510a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/components/iframe/IframeContainer.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,15 @@ function updateGlobalContainerPosition(menuPosition: "top" | "side") {
4848
if (menuPosition === "top") {
4949
globalIframeContainer.style.top = "64px"; // AppBar height
5050
globalIframeContainer.style.bottom = "0";
51+
globalIframeContainer.style.left = "0";
5152
globalIframeContainer.style.height = "auto";
5253
} else {
5354
globalIframeContainer.style.top = "0";
5455
globalIframeContainer.style.bottom = "0";
56+
globalIframeContainer.style.right = "0";
57+
globalIframeContainer.style.left = "240px";
5558
globalIframeContainer.style.height = "100%";
59+
globalIframeContainer.style.width = "calc(100% - 240px)";
5660
}
5761
}
5862

0 commit comments

Comments
 (0)