diff --git a/frontend/src/components/panels/Document.svelte b/frontend/src/components/panels/Document.svelte
index 89e29ae03f..4ab7afd6fc 100644
--- a/frontend/src/components/panels/Document.svelte
+++ b/frontend/src/components/panels/Document.svelte
@@ -533,16 +533,24 @@
y={cursorTop}
/>
{/if}
- {#if !$appWindow.viewportHolePunch}
-
canvasPointerDown(e)} bind:this={viewport} data-viewport>
+
canvasPointerDown(e)}
+ bind:this={viewport}
+ data-viewport
+ >
+ {#if !$appWindow.viewportHolePunch}
-
- {#if showTextInput}
-
- {/if}
-
+ {/if}
+
+ {#if showTextInput}
+
+ {/if}
+
+ {#if !$appWindow.viewportHolePunch}
-
- {/if}
+ {/if}
+
+
@@ -757,6 +766,10 @@
.viewport {
background: var(--color-2-mildblack);
+ }
+
+ .viewport,
+ .viewport-transparent {
width: 100%;
height: 100%;
// Allows the SVG to be placed at explicit integer values of width and height to prevent non-pixel-perfect SVG scaling