mirror of
https://github.com/yattee/yattee.git
synced 2025-04-25 16:16:29 +00:00
Minor trending layout fixes
This commit is contained in:
parent
51bd46b3ae
commit
4a6350f3fe
@ -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)
|
||||
|
@ -36,15 +36,11 @@ struct TrendingView: View {
|
||||
BrowserPlayerControls(toolbar: {
|
||||
HStack {
|
||||
if accounts.app.supportsTrendingCategories {
|
||||
HStack {
|
||||
Text("Category")
|
||||
.foregroundColor(.secondary)
|
||||
|
||||
categoryButton
|
||||
.layoutPriority(1)
|
||||
// only way to disable Menu animation is to
|
||||
// force redraw of the view when it changes
|
||||
.id(UUID())
|
||||
}
|
||||
|
||||
Spacer()
|
||||
}
|
||||
@ -57,13 +53,8 @@ struct TrendingView: View {
|
||||
Spacer()
|
||||
}
|
||||
|
||||
HStack {
|
||||
Text("Country")
|
||||
.foregroundColor(.secondary)
|
||||
|
||||
countryButton
|
||||
}
|
||||
}
|
||||
.padding(.horizontal)
|
||||
}) {
|
||||
Section {
|
||||
|
Loading…
x
Reference in New Issue
Block a user