Skip to content

Agent Zero AI framework

fix(_desktop): allow shrinking the Desktop canvas surface

King0James04e4add524f7d
diff --git a/plugins/_desktop/webui/desktop-panel.html b/plugins/_desktop/webui/desktop-panel.html
index b0764883f..6e1f55de9 100644
--- a/plugins/_desktop/webui/desktop-panel.html
+++ b/plugins/_desktop/webui/desktop-panel.html
@@ -723,6 +723,12 @@
}
}
+
+ /* While the canvas is being resized, the left-edge drag sweeps the cursor across this
+ iframe, which captures the pointermove and freezes shrinking (widening drags away, so
+ it works). Disable hit-testing on the frame during the drag — right-canvas-store.js
+ toggles `right-canvas-resizing` on <body> for the duration of the drag. */
+ body.right-canvas-resizing .office-desktop-frame { pointer-events: none; }
</style>
</body>
</html>