mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 10:25:02 +00:00
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:
@@ -149,11 +149,12 @@ struct InstanceBrowseView: View {
|
|||||||
.focusSection()
|
.focusSection()
|
||||||
.padding(.horizontal, 48)
|
.padding(.horizontal, 48)
|
||||||
.padding(.top, 20)
|
.padding(.top, 20)
|
||||||
.padding(.bottom, 10)
|
|
||||||
|
|
||||||
// Content
|
// Content
|
||||||
ScrollView {
|
ScrollView {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
|
Spacer()
|
||||||
|
.frame(height: 20)
|
||||||
|
|
||||||
// Tab picker (hidden during search)
|
// Tab picker (hidden during search)
|
||||||
if !isInSearchMode {
|
if !isInSearchMode {
|
||||||
Picker("", selection: $selectedTab) {
|
Picker("", selection: $selectedTab) {
|
||||||
|
|||||||
@@ -215,9 +215,8 @@ struct SearchView: View {
|
|||||||
.focusSection()
|
.focusSection()
|
||||||
.padding(.horizontal, 48)
|
.padding(.horizontal, 48)
|
||||||
.padding(.top, 20)
|
.padding(.top, 20)
|
||||||
.padding(.bottom, 10)
|
|
||||||
|
|
||||||
searchContent
|
searchContent
|
||||||
|
.padding(.top, 20)
|
||||||
.focusSection()
|
.focusSection()
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user