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) )}