From 0c875af73c3562668e4f3d4bc4d26bfa7152db4e Mon Sep 17 00:00:00 2001 From: Bastian Masanek Date: Sat, 1 Nov 2025 20:18:20 +0100 Subject: [PATCH] Refactor RoleSwitcher component for improved clarity and consistency - Updated role descriptions for clarity by removing unnecessary phrases. - Enhanced template structure for better readability and consistency in styling. - Adjusted dropdown menu width for improved layout and user experience. --- app/components/navigation/RoleSwitcher.vue | 59 ++++++++-------------- 1 file changed, 20 insertions(+), 39 deletions(-) diff --git a/app/components/navigation/RoleSwitcher.vue b/app/components/navigation/RoleSwitcher.vue index 42246b8..c8b2db2 100644 --- a/app/components/navigation/RoleSwitcher.vue +++ b/app/components/navigation/RoleSwitcher.vue @@ -28,7 +28,7 @@ const roles: RoleOption[] = [ { value: 'individual', label: 'Privatperson', - description: 'für mich', + description: 'Privatperson', icon: User, color: 'text-purple-600', enabled: true, @@ -36,7 +36,7 @@ const roles: RoleOption[] = [ { value: 'educator', label: 'Pädagoge', - description: 'für Schule/Kita', + description: 'Pädagoge', icon: GraduationCap, color: 'text-orange-500', enabled: false, @@ -45,7 +45,7 @@ const roles: RoleOption[] = [ { value: 'company', label: 'Firma', - description: 'für Unternehmen', + description: 'Firma', icon: Building2, color: 'text-blue-600', enabled: false, @@ -70,60 +70,41 @@ function switchRole(role: UserRole) {