Increase top spacing for tvOS focus effect on first content row

Add padding above the content area so the tvOS focus highlight on the
first row isn't clipped by the search header above it.
This commit is contained in:
Arkadiusz Fal
2026-04-13 22:35:24 +02:00
parent c3a2f7a965
commit 885c478857
2 changed files with 4 additions and 4 deletions

View File

@@ -149,11 +149,12 @@ struct InstanceBrowseView: View {
.focusSection()
.padding(.horizontal, 48)
.padding(.top, 20)
.padding(.bottom, 10)
// Content
ScrollView {
VStack(spacing: 0) {
Spacer()
.frame(height: 20)
// Tab picker (hidden during search)
if !isInSearchMode {
Picker("", selection: $selectedTab) {

View File

@@ -215,9 +215,8 @@ struct SearchView: View {
.focusSection()
.padding(.horizontal, 48)
.padding(.top, 20)
.padding(.bottom, 10)
searchContent
.padding(.top, 20)
.focusSection()
}
#else