mirror of
https://github.com/yattee/yattee.git
synced 2025-04-26 08:36: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)
|
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)
|
||||||
|
@ -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)
|
||||||
}) {
|
}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user