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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013H6bXqGX1ygwib1Dm3n3UG
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user