mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 19:05:03 +00:00
Tweak Subscriptions view options sheet layout
This commit is contained in:
@@ -306,14 +306,6 @@ struct SubscriptionsView: View {
|
|||||||
NavigationStack {
|
NavigationStack {
|
||||||
Form {
|
Form {
|
||||||
Section {
|
Section {
|
||||||
// Layout picker (inline menu)
|
|
||||||
PlatformMenuPicker(String(localized: "viewOptions.layout"), selection: $layout) {
|
|
||||||
ForEach(VideoListLayout.allCases, id: \.self) { option in
|
|
||||||
Label(option.displayName, systemImage: option.systemImage)
|
|
||||||
.tag(option)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
Toggle("viewOptions.showSidebar", isOn: $showSidebar)
|
Toggle("viewOptions.showSidebar", isOn: $showSidebar)
|
||||||
#elseif os(iOS)
|
#elseif os(iOS)
|
||||||
@@ -322,6 +314,13 @@ struct SubscriptionsView: View {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Layout picker (inline menu)
|
||||||
|
PlatformMenuPicker(String(localized: "viewOptions.layout"), selection: $layout) {
|
||||||
|
ForEach(VideoListLayout.allCases, id: \.self) { option in
|
||||||
|
Text(option.displayName).tag(option)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// List-specific options
|
// List-specific options
|
||||||
if layout == .list {
|
if layout == .list {
|
||||||
PlatformMenuPicker(String(localized: "viewOptions.rowSize"), selection: $rowStyle) {
|
PlatformMenuPicker(String(localized: "viewOptions.rowSize"), selection: $rowStyle) {
|
||||||
@@ -385,7 +384,7 @@ struct SubscriptionsView: View {
|
|||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
.frame(minWidth: 500, minHeight: 450)
|
.frame(minWidth: 500, minHeight: 450)
|
||||||
#endif
|
#endif
|
||||||
.presentationDetents([.height(420), .large])
|
.presentationDetents([.height(520), .large])
|
||||||
.presentationDragIndicator(.visible)
|
.presentationDragIndicator(.visible)
|
||||||
.liquidGlassSheetContent(sourceID: "subscriptionsViewOptions", in: sheetTransition)
|
.liquidGlassSheetContent(sourceID: "subscriptionsViewOptions", in: sheetTransition)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user