fix: Forge iframe fills full modal height (position:absolute)
CI / lint (push) Successful in 15s
CI / security (push) Successful in 9s
CI / test (push) Successful in 38s
CI / build (push) Successful in 3s

.editor-body has flex height, so percentage height on iframe didn't work. Changed to position:absolute;inset:0 which fills the relative parent regardless of flex sizing.
This commit is contained in:
2026-06-06 00:35:57 -04:00
parent 12eaa9f659
commit 6388718b87
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3302,7 +3302,7 @@
var iframe = document.createElement("iframe");
iframe.id = "forge-iframe";
iframe.src = "/editor-poc?vault=" + encodeURIComponent(data.vault) + "&path=" + encodeURIComponent(data.path);
iframe.style.cssText = "width:100%;height:100%;border:none;";
iframe.style.cssText = "position:absolute;top:0;left:0;width:100%;height:100%;border:none;";
bodyEl.appendChild(iframe);
modal.classList.add("active");
safeCreateIcons();
+1 -1
View File
@@ -507,7 +507,7 @@ export function renderFile(data) {
var iframe = document.createElement("iframe");
iframe.id = "forge-iframe";
iframe.src = "/editor-poc?vault=" + encodeURIComponent(data.vault) + "&path=" + encodeURIComponent(data.path);
iframe.style.cssText = "width:100%;height:100%;border:none;";
iframe.style.cssText = "position:absolute;top:0;left:0;width:100%;height:100%;border:none;";
bodyEl.appendChild(iframe);
modal.classList.add("active");
safeCreateIcons();