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)
}
HStack {
TextField("Recent history items", text: $homeHistoryItemsText)
Text("Recent history")
TextField("Recent history", text: $homeHistoryItemsText)
.labelsHidden()
#if !os(macOS)
.keyboardType(.URL)
.keyboardType(.numberPad)
#endif
.onAppear {
homeHistoryItemsText = String(homeHistoryItems)

View File

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