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:
parent
50944a3526
commit
519fb422ae
1 changed files with 6 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue