fix(stocktake-pdf): add cell padding so columns have visible gaps
The previous layout had numeric columns (Current, Min, Max — right-aligned) flush against the Status column (left-aligned). A row like '100In stock' read as a single mashed string because there was no whitespace between the right edge of the Max column and the left edge of the Status column. Fix: add paddingRight: 8 to the three numeric columns and paddingLeft: 8 to the Status column. Right-aligned numbers now end 8pt before the column boundary, and the Status text starts 8pt inside its column — visible gap between columns, even with the Status sitting right next to Max. Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
parent
a35e715b21
commit
21c54ad24e
1 changed files with 4 additions and 4 deletions
|
|
@ -52,10 +52,10 @@ const styles = StyleSheet.create({
|
|||
cSku: { width: "10%" },
|
||||
cName: { width: "24%" },
|
||||
cSupplier: { width: "18%" },
|
||||
cCurrent: { width: "9%" },
|
||||
cMin: { width: "8%" },
|
||||
cMax: { width: "9%" },
|
||||
cStatus: { width: "16%" },
|
||||
cCurrent: { width: "9%", paddingRight: 8 },
|
||||
cMin: { width: "8%", paddingRight: 8 },
|
||||
cMax: { width: "9%", paddingRight: 8 },
|
||||
cStatus: { width: "16%", paddingLeft: 8 },
|
||||
spacer: { width: "6%" },
|
||||
empty: { marginTop: 24, color: "#666", fontSize: 10, textAlign: "center" },
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue