Minor trending layout fixes

This commit is contained in:
Arkadiusz Fal 2022-11-11 21:28:48 +01:00
parent 51bd46b3ae
commit 4a6350f3fe
2 changed files with 10 additions and 17 deletions

View File

@ -71,9 +71,11 @@ struct BrowsingSettings: View {
Toggle("Show Favorites", isOn: $showFavoritesInHome) Toggle("Show Favorites", isOn: $showFavoritesInHome)
} }
HStack { HStack {
TextField("Recent history items", text: $homeHistoryItemsText) Text("Recent history")
TextField("Recent history", text: $homeHistoryItemsText)
.labelsHidden()
#if !os(macOS) #if !os(macOS)
.keyboardType(.URL) .keyboardType(.numberPad)
#endif #endif
.onAppear { .onAppear {
homeHistoryItemsText = String(homeHistoryItems) homeHistoryItemsText = String(homeHistoryItems)

View File

@ -36,15 +36,11 @@ struct TrendingView: View {
BrowserPlayerControls(toolbar: { BrowserPlayerControls(toolbar: {
HStack { HStack {
if accounts.app.supportsTrendingCategories { if accounts.app.supportsTrendingCategories {
HStack { categoryButton
Text("Category") .layoutPriority(1)
.foregroundColor(.secondary) // only way to disable Menu animation is to
// force redraw of the view when it changes
categoryButton .id(UUID())
// only way to disable Menu animation is to
// force redraw of the view when it changes
.id(UUID())
}
Spacer() Spacer()
} }
@ -57,12 +53,7 @@ struct TrendingView: View {
Spacer() Spacer()
} }
HStack { countryButton
Text("Country")
.foregroundColor(.secondary)
countryButton
}
} }
.padding(.horizontal) .padding(.horizontal)
}) { }) {