From 240cf236935c2590cb34d18effaa0064e5dd5252 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 5 Apr 2026 20:22:04 +0200 Subject: [PATCH] Fix uneven shortcut card heights on tvOS home screen Always reserve space for the subtitle line so cards with and without subtitles have consistent heights in the grid. --- Yattee/Views/Home/HomeShortcutCardView.swift | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Yattee/Views/Home/HomeShortcutCardView.swift b/Yattee/Views/Home/HomeShortcutCardView.swift index 002be4e3..365074cb 100644 --- a/Yattee/Views/Home/HomeShortcutCardView.swift +++ b/Yattee/Views/Home/HomeShortcutCardView.swift @@ -90,13 +90,11 @@ struct HomeShortcutCardView: View { } } - if hasSubtitle { - Text(subtitle) - .font(subtitleFont) - .foregroundStyle(.secondary) - } + Text(hasSubtitle ? subtitle : " ") + .font(subtitleFont) + .foregroundStyle(.secondary) + .opacity(hasSubtitle ? 1 : 0) } - .frame(minHeight: subtitleMinHeight, alignment: hasSubtitle ? .top : .center) } .frame(maxWidth: .infinity, alignment: .leading) } else {