From 666428b1c73ae6b0b65db74190fd98f97fd219bc Mon Sep 17 00:00:00 2001 From: Dotta Date: Sun, 26 Apr 2026 16:20:14 -0500 Subject: [PATCH] Remove inner border around plan document body The plan document panel rendered an inner bordered+padded wrapper inside an already-bordered outer container, creating an undesirable double-border look (PAP-2357). Drop the inner border/background/padding on the rendered-body and historical-preview branches and the unused legacy plan padding wrapper so the markdown content sits flush inside the single outer panel. Co-Authored-By: Paperclip --- ui/src/components/IssueDocumentsSection.tsx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/ui/src/components/IssueDocumentsSection.tsx b/ui/src/components/IssueDocumentsSection.tsx index 74a40656f53..717fbd0ae57 100644 --- a/ui/src/components/IssueDocumentsSection.tsx +++ b/ui/src/components/IssueDocumentsSection.tsx @@ -677,8 +677,7 @@ export function IssueDocumentsSection({ }; }, [autosaveState, commitDraft, documentConflict, draft, markDocumentDirty, resetAutosaveState, sortedDocuments]); - const documentBodyShellClassName = "mt-3 overflow-hidden rounded-md"; - const documentBodyPaddingClassName = ""; + const documentBodyShellClassName = "mt-3"; const documentBodyContentClassName = "paperclip-edit-in-place-content min-h-[220px] text-[15px] leading-7"; const toggleFoldedDocument = (key: string) => { setFoldedDocumentKeys((current) => @@ -784,9 +783,7 @@ export function IssueDocumentsSection({ PLAN -
- {renderFoldableBody(issue.legacyPlanDocument.body, documentBodyContentClassName)} -
+ {renderFoldableBody(issue.legacyPlanDocument.body, documentBodyContentClassName)} ) : null} @@ -1088,14 +1085,12 @@ export function IssueDocumentsSection({ /> )}
{isHistoricalPreview ? ( -
- {renderFoldableBody(displayedBody, documentBodyContentClassName)} -
+ renderFoldableBody(displayedBody, documentBodyContentClassName) ) : activeDraft ? ( void commitDraft(activeDraft ?? draft, { clearAfterSave: false, trackAutosave: true })} /> ) : ( -
- {renderFoldableBody(displayedBody, documentBodyContentClassName)} -
+ renderFoldableBody(displayedBody, documentBodyContentClassName) )}