fix(iframe): scale iframe content with the board (#7034)

This commit is contained in:
Bergasha authored and GitHub committed 2026-10-04 09:16:16 +02:00
1 parent 917d92c9f3
commit e089d690ee
2 files changed
+8 -2

No files matched your search

@@ -1,7 +1,13 @@
.iframe { .frame {
position: relative;
overflow: hidden;
border-radius: var(--mantine-radius-sm); border-radius: var(--mantine-radius-sm);
}
.iframe {
width: 100%; width: 100%;
height: 100%; height: 100%;
zoom: var(--board-canvas-ui-scale, 1);
border: none; border: none;
background: none; background: none;
background-color: transparent; background-color: transparent;
+1 -1
View File
@@ -19,7 +19,7 @@ export default function IFrameWidget({ options, isEditMode }: WidgetComponentPro
return ( return (
<Stack h="100%" w="100%" gap={0}> <Stack h="100%" w="100%" gap={0}>
<Box style={{ flex: 1, minHeight: 0 }}> <Box className={classes.frame} style={{ flex: 1, minHeight: 0 }}>
<iframe <iframe
loading="lazy" loading="lazy"
style={isEditMode ? { userSelect: "none", pointerEvents: "none" } : undefined} style={isEditMode ? { userSelect: "none", pointerEvents: "none" } : undefined}