diff --git a/src/lib/client/profile.svelte.ts b/src/lib/client/profile.svelte.ts index d8ba289..256fc6c 100644 --- a/src/lib/client/profile.svelte.ts +++ b/src/lib/client/profile.svelte.ts @@ -66,12 +66,14 @@ export const profileStore = new ProfileStore(); * Returns the active profile, or null after showing the standard * "kein Profil gewählt" dialog. Use as the first line of any per-profile * action so we don't repeat the guard at every call-site. + * + * `message` ueberschreibt den Default, wenn eine Aktion einen spezifischen + * Hinweis braucht (z. B. „um mitzuwünschen" auf der Wunschliste). */ -export async function requireProfile(): Promise { +export async function requireProfile( + message = 'Tippe oben rechts auf „Profil wählen", dann klappt die Aktion.' +): Promise { if (profileStore.active) return profileStore.active; - await alertAction({ - title: 'Kein Profil gewählt', - message: 'Tippe oben rechts auf „Profil wählen", dann klappt die Aktion.' - }); + await alertAction({ title: 'Kein Profil gewählt', message }); return null; } diff --git a/src/lib/components/ProfileSwitcher.svelte b/src/lib/components/ProfileSwitcher.svelte index d68db80..9f674d6 100644 --- a/src/lib/components/ProfileSwitcher.svelte +++ b/src/lib/components/ProfileSwitcher.svelte @@ -99,7 +99,7 @@ align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem; - border-radius: 999px; + border-radius: var(--pill-radius); border: 1px solid #cfd9d1; background: white; font-size: 0.95rem; diff --git a/src/lib/components/RecipeEditor.svelte b/src/lib/components/RecipeEditor.svelte index 9aee916..cc12717 100644 --- a/src/lib/components/RecipeEditor.svelte +++ b/src/lib/components/RecipeEditor.svelte @@ -1,7 +1,9 @@