From a2382cf027827c45fd4d3dba1c9af5b2fd13c585 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Thu, 5 Mar 2026 13:17:26 +0000 Subject: [PATCH] Fix PDF page breaks, badge alignment, and responsive layout - PDFReport: Fix RagStatus badge padding (symmetric 4px top/bottom + lineHeight 1.2) so text is centered rather than floating at the top - PDFReport: Add breakInside: 'avoid' to preview+summary grid, agent reviews grid, and li elements to prevent content being cut mid-sentence across PDF page breaks - Campaigns: Lower two-column layout breakpoint from xl (1280px) to lg (1024px) so laptop screens show side-by-side proof detail view - Campaigns: Add flex-wrap to button row so Download Proof / Download Report / New Version buttons wrap gracefully on smaller screens Co-Authored-By: Claude Sonnet 4.6 --- frontend/components/Campaigns.tsx | 6 +++--- frontend/components/PDFReport.tsx | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/components/Campaigns.tsx b/frontend/components/Campaigns.tsx index 8451a70..366fee9 100755 --- a/frontend/components/Campaigns.tsx +++ b/frontend/components/Campaigns.tsx @@ -1701,7 +1701,7 @@ const ProofDetailView: React.FC<{ -
+
@@ -1721,7 +1721,7 @@ const ProofDetailView: React.FC<{ Version History -
+
-
+
{selectedVersion.isIdenticalFile && (
diff --git a/frontend/components/PDFReport.tsx b/frontend/components/PDFReport.tsx index 715c040..9f78d8a 100755 --- a/frontend/components/PDFReport.tsx +++ b/frontend/components/PDFReport.tsx @@ -76,7 +76,7 @@ const formatFeedbackTextForPDF = (text: string): React.ReactNode => { {bulletGroups.length > 0 && (
    {bulletGroups.map((group, index) => ( -
  • +
  • {group.map((line, lineIdx) => ( {lineIdx > 0 &&
    } @@ -102,7 +102,7 @@ const RagStatusBadge: React.FC<{ status: RagStatus }> = ({ status }) => { } return ( - + {status} ); @@ -182,7 +182,7 @@ export const PDFReport: React.FC = ({ campaignName, proofs, base
{/* Preview & Summary */} -
+
Proof Preview
@@ -200,7 +200,7 @@ export const PDFReport: React.FC = ({ campaignName, proofs, base
{/* Detailed Agent Feedback */} -
+
{agentReviews.map(({ title, review, icon }) => (
@@ -214,7 +214,7 @@ export const PDFReport: React.FC = ({ campaignName, proofs, base
Key Actions:
    - {review.issues.map((issue, i) =>
  • {issue}
  • )} + {review.issues.map((issue, i) =>
  • {issue}
  • )}
)}