From 3e7d50415bfee5f0504c5bc5833b84501ae1dee4 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 7 Jun 2026 07:58:09 +0200 Subject: [PATCH] Fix playlist form layout on macOS --- Yattee/Views/Playlist/PlaylistFormSheet.swift | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Yattee/Views/Playlist/PlaylistFormSheet.swift b/Yattee/Views/Playlist/PlaylistFormSheet.swift index 42536a1f..523823c7 100644 --- a/Yattee/Views/Playlist/PlaylistFormSheet.swift +++ b/Yattee/Views/Playlist/PlaylistFormSheet.swift @@ -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