fix: implement strict print grid and optical centering for business card
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Failing after 1m21s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-06-12 10:30:55 +02:00
parent 6bab5c9173
commit eaf17315ff
12 changed files with 9 additions and 8 deletions

View File

@@ -100,7 +100,8 @@ const styles = StyleSheet.create({
}, },
frontContainer: { frontContainer: {
flex: 1, flex: 1,
paddingBottom: '18mm', // Push the logo up to center it in the area above the bar paddingTop: '3mm', // Compensate for top bleed for perfect optical centering
paddingBottom: '18mm', // Leave space for the green bar
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
}, },
@@ -162,10 +163,10 @@ const styles = StyleSheet.create({
// -- WHITE PAGE (Vorderseite) -- // -- WHITE PAGE (Vorderseite) --
backContainer: { backContainer: {
flex: 1, flex: 1,
paddingTop: '8mm', paddingTop: '7mm', // 3mm bleed + 4mm safe margin
paddingBottom: '10mm', paddingBottom: '14mm', // Prevent overlap with address footer
paddingLeft: '6mm', paddingLeft: '7mm',
paddingRight: '6mm', paddingRight: '7mm',
flexDirection: 'column', flexDirection: 'column',
}, },
backHeader: { backHeader: {
@@ -181,8 +182,8 @@ const styles = StyleSheet.create({
flex: 1, flex: 1,
height: 1.5, height: 1.5,
backgroundColor: '#011dff', // Brand blue line backgroundColor: '#011dff', // Brand blue line
marginLeft: 15, marginLeft: 12,
marginRight: 10, marginRight: 12,
}, },
accentDot: { accentDot: {
width: 4, width: 4,
@@ -276,7 +277,7 @@ const styles = StyleSheet.create({
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
position: 'absolute', position: 'absolute',
bottom: '3.5mm', bottom: '7mm', // 3mm bleed + 4mm safe margin
}, },
addressFooterText: { addressFooterText: {
fontSize: 7, // increased from 6 fontSize: 7, // increased from 6

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 13 KiB