diff --git a/backend/app/routers/reunions.py b/backend/app/routers/reunions.py index ab50705..e0cb8f9 100644 --- a/backend/app/routers/reunions.py +++ b/backend/app/routers/reunions.py @@ -141,13 +141,15 @@ async def _html_rapport_rencontre(reunion: Reunion, membre, db: AsyncSession) -> css = """ @page { size: letter; margin: 0.55in 0.65in; } body { font-family: Arial, 'DejaVu Sans', sans-serif; color: #111; font-size: 10pt; } - .header { text-align: center; margin: 12pt 0 40pt; } - .groupe { font-size: 21pt; font-weight: 400; margin-bottom: 16pt; } - .district { font-size: 16pt; margin-bottom: 18pt; } + .header { text-align: center; margin: 8pt 0 28pt; } + .groupe { font-size: 20pt; font-weight: 400; margin-bottom: 8pt; } + .district { font-size: 14pt; margin-bottom: 6pt; } + .adresse { font-size: 9.5pt; margin-bottom: 16pt; color: #333; } h1 { font-size: 14pt; font-weight: 500; letter-spacing: 0; margin: 0; } - .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18pt 18pt; } + .grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14pt 16pt; } .field { break-inside: avoid; } .field.full { grid-column: 1 / -1; } + .field.span2 { grid-column: span 2; } .box { border: 1pt solid #222; min-height: 27pt; @@ -157,33 +159,34 @@ async def _html_rapport_rencontre(reunion: Reunion, membre, db: AsyncSession) -> overflow: hidden; } .label { font-style: italic; font-size: 8.5pt; margin: 4pt 0 0 1pt; } - .short .box { min-height: 24pt; } - .theme .box { min-height: 58pt; } - .medium .box { min-height: 58pt; } - .deep .box { min-height: 95pt; } - .notes .box { min-height: 150pt; } + .short .box { min-height: 23pt; } + .theme .box { min-height: 54pt; } + .medium .box { min-height: 70pt; } + .tall .box { min-height: 86pt; } + .notes .box { min-height: 132pt; } .footer { margin-top: 10pt; color: #777; font-size: 7.5pt; text-align: center; } """ groupe_nom = groupe.nom if groupe and groupe.nom else "Groupe" district = f"District {groupe.district}" if groupe and groupe.district else "District" + adresse = groupe.adresse_local if groupe and groupe.adresse_local else "" + nouveaux_jetons = "\n\n".join([texte for texte in ["Nouveau(x):", jetons_texte] if texte]) html = f"""
${district}
+ ${lieu ? `