Fix playlist form layout on macOS

This commit is contained in:
Arkadiusz Fal
2026-06-07 07:58:09 +02:00
parent 8ab6d339f6
commit 3e7d50415b

View File

@@ -100,10 +100,17 @@ struct PlaylistFormSheet: View {
private var formContent: some View {
Form {
Section {
TextField(String(localized: "playlist.name"), text: $title)
#if os(iOS)
.textInputAutocapitalization(.sentences)
#endif
TextField(
String(localized: "playlist.name"),
text: $title,
prompt: Text(String(localized: "playlist.name"))
)
#if os(iOS)
.textInputAutocapitalization(.sentences)
#endif
#if os(macOS)
.labelsHidden()
#endif
} header: {
Text(String(localized: "playlist.name"))
}
@@ -131,6 +138,9 @@ struct PlaylistFormSheet: View {
#if os(iOS)
.scrollDismissesKeyboard(.interactively)
#endif
#if os(macOS)
.formStyle(.grouped)
#endif
}
#endif