From 519fb422aeec27d7ba0170426679bb2172abb5be Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 17 Aug 2026 15:44:21 +0200 Subject: [PATCH] fix(pdf): adjust totals alignment in quote document - Updated the `totals` style in the PDF generation to ensure totals are pushed to the right edge of the totals row, regardless of the presence of the operator note. This prevents shifting when the note is empty, enhancing the layout consistency. --- src/lib/pdf/quote-document.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/pdf/quote-document.tsx b/src/lib/pdf/quote-document.tsx index 18de8dd..3611969 100644 --- a/src/lib/pdf/quote-document.tsx +++ b/src/lib/pdf/quote-document.tsx @@ -392,6 +392,12 @@ const styles = StyleSheet.create({ }, totals: { minWidth: 220, + // Push the totals to the right edge of the totals row whether + // or not the operator note is present. Without this, the totals + // would shift to the left edge when the note is empty (because + // it would be the only flex child of a `justify-content: + // space-between` row). + marginLeft: "auto", }, totalLine: { flexDirection: "row",