From 729239c6ef5ba19b3f6e8c2aac02a4afe0127906 Mon Sep 17 00:00:00 2001 From: alexandrev-tibco Date: Tue, 1 Sep 2026 13:32:23 +0200 Subject: [PATCH] export: logo del header elegante a la izquierda (estilo membrete) En school/vertical el logo centrado sobre el titulo quedaba mal; ahora va a la izquierda con el rango de semana y el titulo alineados al lado, y la fecha de export a la derecha. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_013H6bXqGX1ygwib1Dm3n3UG --- MealMood/Views/Home/WeekPlanShareView.swift | 26 +++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/MealMood/Views/Home/WeekPlanShareView.swift b/MealMood/Views/Home/WeekPlanShareView.swift index 7cab7ef..9b061dd 100644 --- a/MealMood/Views/Home/WeekPlanShareView.swift +++ b/MealMood/Views/Home/WeekPlanShareView.swift @@ -218,20 +218,22 @@ struct WeekPlanShareView: View { } private var elegantHeader: some View { - VStack(spacing: 10) { - MealMoodLogoMark(size: 96) + HStack(alignment: .center, spacing: 28) { + MealMoodLogoMark(size: 110) - Text(plan.weekStartDate.formattedWeekRange()) - .font(.custom("Didot", size: exportStyle == .vertical ? 126 : 108)) - .foregroundColor(Color(hex: "#30473F")) - .multilineTextAlignment(.center) - .lineLimit(1) - .minimumScaleFactor(0.45) - .frame(maxWidth: .infinity) + VStack(alignment: .leading, spacing: 8) { + Text(plan.weekStartDate.formattedWeekRange()) + .font(.custom("Didot", size: exportStyle == .vertical ? 126 : 108)) + .foregroundColor(Color(hex: "#30473F")) + .lineLimit(1) + .minimumScaleFactor(0.45) - Text(exportHeaderTitle) - .font(.system(size: exportStyle == .vertical ? 58 : 54, weight: .semibold, design: .serif)) - .foregroundColor(.mealMoodTextPrimary) + Text(exportHeaderTitle) + .font(.system(size: exportStyle == .vertical ? 58 : 54, weight: .semibold, design: .serif)) + .foregroundColor(.mealMoodTextPrimary) + } + + Spacer() Text(exportDateString) .font(.system(size: 34, weight: .medium, design: .serif))