diff --git a/site/src/pages/AgentsPage/components/ChatElements/tools/InlineDesktopPreview.tsx b/site/src/pages/AgentsPage/components/ChatElements/tools/InlineDesktopPreview.tsx
index 5a6de7ff03..05e2b1500a 100644
--- a/site/src/pages/AgentsPage/components/ChatElements/tools/InlineDesktopPreview.tsx
+++ b/site/src/pages/AgentsPage/components/ChatElements/tools/InlineDesktopPreview.tsx
@@ -6,7 +6,7 @@ import {
type UseDesktopConnectionResult,
useDesktopConnection,
} from "#/pages/AgentsPage/hooks/useDesktopConnection";
-import { DEFAULT_ASPECT, PREVIEW_HEIGHT } from "./previewConstants";
+import { DEFAULT_ASPECT } from "./previewConstants";
/**
* Non-interactive inline VNC desktop preview. The noVNC canvas is
@@ -98,8 +98,8 @@ export const InlineDesktopPreview: React.FC<{
if (status === "idle" || status === "connecting") {
return wrapWithOverlay(
,
@@ -109,8 +109,8 @@ export const InlineDesktopPreview: React.FC<{
if (status === "disconnected") {
return wrapWithOverlay(
Desktop disconnected. Reconnecting…
,
@@ -120,8 +120,8 @@ export const InlineDesktopPreview: React.FC<{
if (status === "error") {
return wrapWithOverlay(
Could not connect to desktop.
,
@@ -136,8 +136,8 @@ export const InlineDesktopPreview: React.FC<{
containerRef.current = el;
if (el) attach(el);
}}
- className="pointer-events-none"
- style={{ aspectRatio, height: PREVIEW_HEIGHT }}
+ className="pointer-events-none w-full"
+ style={{ aspectRatio }}
/>,
);
};
diff --git a/site/src/pages/AgentsPage/components/ChatElements/tools/SubagentTool.tsx b/site/src/pages/AgentsPage/components/ChatElements/tools/SubagentTool.tsx
index a39f926f74..c7995b50fb 100644
--- a/site/src/pages/AgentsPage/components/ChatElements/tools/SubagentTool.tsx
+++ b/site/src/pages/AgentsPage/components/ChatElements/tools/SubagentTool.tsx
@@ -244,7 +244,7 @@ export const SubagentTool: React.FC<{
{showDesktopPreview && desktopChatId && toolStatus !== "completed" && (
-