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.
This commit is contained in:
Dave 2026-08-17 15:44:21 +02:00
parent 50944a3526
commit 519fb422ae

View file

@ -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",