mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
Fix playlist form layout on macOS
This commit is contained in:
@@ -100,10 +100,17 @@ struct PlaylistFormSheet: View {
|
|||||||
private var formContent: some View {
|
private var formContent: some View {
|
||||||
Form {
|
Form {
|
||||||
Section {
|
Section {
|
||||||
TextField(String(localized: "playlist.name"), text: $title)
|
TextField(
|
||||||
#if os(iOS)
|
String(localized: "playlist.name"),
|
||||||
.textInputAutocapitalization(.sentences)
|
text: $title,
|
||||||
#endif
|
prompt: Text(String(localized: "playlist.name"))
|
||||||
|
)
|
||||||
|
#if os(iOS)
|
||||||
|
.textInputAutocapitalization(.sentences)
|
||||||
|
#endif
|
||||||
|
#if os(macOS)
|
||||||
|
.labelsHidden()
|
||||||
|
#endif
|
||||||
} header: {
|
} header: {
|
||||||
Text(String(localized: "playlist.name"))
|
Text(String(localized: "playlist.name"))
|
||||||
}
|
}
|
||||||
@@ -131,6 +138,9 @@ struct PlaylistFormSheet: View {
|
|||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
.scrollDismissesKeyboard(.interactively)
|
.scrollDismissesKeyboard(.interactively)
|
||||||
#endif
|
#endif
|
||||||
|
#if os(macOS)
|
||||||
|
.formStyle(.grouped)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user