Skip to content

Commit 8fb9df3

Browse files
committed
Recto pleine hauteur en paysage : fond perdu en haut et en bas de l'image
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016wVsap73EucTstQoL8cttV
1 parent 4093fa0 commit 8fb9df3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎app/Sources/LaFleurStudio/Jaquette/Rendu.swift‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,14 @@ struct RectoVue: View {
189189
let b = mise.bandeauRecto
190190
let pw = paysage ? perduHaut : perduDroite, ph = paysage ? perduDroite : perduHaut
191191
let cadre = ZStack(alignment: .topLeading) {
192-
ImageRecto(mise: mise, largeur: w + pw, hauteur: h - b + (paysage ? 0 : ph), u: u)
192+
// En paysage, l'image touche le haut et le bas du recto : fond perdu des deux côtés.
193+
ImageRecto(mise: mise, largeur: w + (paysage ? 2 * pw : pw), hauteur: h - b + (paysage ? 0 : ph), u: u)
193194
.offset(x: paysage ? -pw * u : 0, y: paysage ? 0 : -ph * u)
194195
ImagesPosees(images: mise.design.imagesPosees, largeur: w, hauteur: h, u: u)
195196
Rectangle().fill(Color(hex: p.fond))
196-
.frame(width: (w + pw) * u, height: b * u)
197+
.frame(width: (w + (paysage ? 2 * pw : pw)) * u, height: b * u)
197198
.offset(x: paysage ? -pw * u : 0, y: (h - b) * u)
198-
Rectangle().fill(Color(hex: p.accent)).frame(width: (w + pw) * u, height: 0.8 * u)
199+
Rectangle().fill(Color(hex: p.accent)).frame(width: (w + (paysage ? 2 * pw : pw)) * u, height: 0.8 * u)
199200
.offset(x: paysage ? -pw * u : 0, y: (h - b) * u)
200201
if paysage {
201202
VStack(alignment: .leading, spacing: 1 * u) {

0 commit comments

Comments
 (0)