From ef7907d74bf2f2ecd9aee65c891078e765c69e9d Mon Sep 17 00:00:00 2001 From: rene Date: Sat, 30 May 2026 12:33:25 +0200 Subject: [PATCH] =?UTF-8?q?Heim:=20nur=20noch=20'N=C3=A4chster=20Termin';?= =?UTF-8?q?=20letzter=20Eintrag/Gewicht/Anzahl=20raus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BanYaroGo/Views/HeimView.swift | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/BanYaroGo/Views/HeimView.swift b/BanYaroGo/Views/HeimView.swift index 3e08dcc..ef60d37 100644 --- a/BanYaroGo/Views/HeimView.swift +++ b/BanYaroGo/Views/HeimView.swift @@ -169,14 +169,6 @@ struct HeimView: View { private func dashboardCards(_ snap: DashboardSnapshot) -> some View { VStack(spacing: 10) { - if let last = snap.lastDiary, last.titel != nil { - infoCard( - icon: "book.fill", - title: "Letzter Eintrag", - value: last.titel ?? "—", - detail: last.datum.map(DiaryUtil.format) ?? "" - ) - } if let appt = snap.nextAppointment, let bez = appt.bezeichnung { infoCard( icon: "calendar", @@ -185,22 +177,6 @@ struct HeimView: View { detail: appt.naechstes.map(DiaryUtil.format) ?? "" ) } - if let weight = snap.lastWeight, let wert = weight.wert { - infoCard( - icon: "scalemass.fill", - title: "Letztes Gewicht", - value: String(format: "%.1f %@", wert, weight.einheit ?? "kg"), - detail: weight.datum.map(DiaryUtil.format) ?? "" - ) - } - if let count = snap.diaryCount, count > 0 { - infoCard( - icon: "books.vertical.fill", - title: "Tagebucheinträge", - value: "\(count)", - detail: "" - ) - } } }