From 7fe95c115a732626a43ff470b371a70b9122eb9f Mon Sep 17 00:00:00 2001 From: PostHog Code Date: Wed, 20 May 2026 20:57:53 +0000 Subject: [PATCH] fix(code): give plan approval more room and a discoverable expand button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plans previously rendered inside a 50vh × 750px scroll box with a 12px floating fullscreen icon. Add a labeled header row with a "Plan" title and an "Expand" button, bump the inline max-height to 75vh, and replace the bare ArrowsIn placeholder shown when fullscreen is active with an explicit "Plan opened in fullscreen / Exit fullscreen" affordance so the return path is always obvious. Generated-By: PostHog Code Task-Id: 21dcadb5-cfe8-45a1-a613-bd79be9afae8 --- .../components/permissions/PlanContent.tsx | 63 ++++++++++++------- 1 file changed, 42 insertions(+), 21 deletions(-) diff --git a/apps/code/src/renderer/components/permissions/PlanContent.tsx b/apps/code/src/renderer/components/permissions/PlanContent.tsx index 0b12ebbb55..381aaad33a 100644 --- a/apps/code/src/renderer/components/permissions/PlanContent.tsx +++ b/apps/code/src/renderer/components/permissions/PlanContent.tsx @@ -1,5 +1,5 @@ -import { ArrowsIn, ArrowsOut, ListChecks, X } from "@phosphor-icons/react"; -import { Box, Flex, IconButton, Text } from "@radix-ui/themes"; +import { ArrowsOut, ListChecks, X } from "@phosphor-icons/react"; +import { Box, Button, Flex, IconButton, Text } from "@radix-ui/themes"; import { useEffect, useRef, useState } from "react"; import { createPortal } from "react-dom"; import ReactMarkdown from "react-markdown"; @@ -56,16 +56,25 @@ export function PlanContent({ id, plan }: PlanContentProps) { if (portalTarget) { return ( <> - - + + + + Plan opened in fullscreen + + + {createPortal( @@ -105,22 +114,34 @@ export function PlanContent({ id, plan }: PlanContentProps) { } return ( - - setIsFullscreen(true)} - title="Expand to fullscreen" + + - - + + + Plan + + + - {markdown} + + {markdown} + ); }