From 00baed3c43182219735a9cff15c4579b3f547060 Mon Sep 17 00:00:00 2001 From: WZBbiao Date: Mon, 2 Mar 2026 18:25:29 +0800 Subject: [PATCH] Fix extra leading space in YearPicker by using icon-only label style The YearPicker was using Label("Year", systemImage: "calendar") which displayed both the icon and the "Year" text. In the menu picker style (used on both tvOS inline and iOS toolbar), this caused extra leading space to appear before the year number since the label text was rendered alongside the selected value. Applying .labelStyle(.iconOnly) to the Picker removes the text portion of the Label, showing only the calendar icon. This eliminates the extra leading space while keeping the visual calendar indicator. Fixes #40. --- HackerTube/Features/Browse/BrowseView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/HackerTube/Features/Browse/BrowseView.swift b/HackerTube/Features/Browse/BrowseView.swift index 8d31eaa..56685e8 100644 --- a/HackerTube/Features/Browse/BrowseView.swift +++ b/HackerTube/Features/Browse/BrowseView.swift @@ -107,6 +107,7 @@ struct YearPicker: View { Label("Year", systemImage: "calendar") } .pickerStyle(.menu) + .labelStyle(.iconOnly) .fixedSize(horizontal: true, vertical: false) } }