diff --git a/web/src/components/config-form/sections/BaseSection.tsx b/web/src/components/config-form/sections/BaseSection.tsx index f8a22b43c..9918836bd 100644 --- a/web/src/components/config-form/sections/BaseSection.tsx +++ b/web/src/components/config-form/sections/BaseSection.tsx @@ -1157,7 +1157,7 @@ export function ConfigSection({ boolean; onSelectProfile: (profileName: string | null) => void; + /** When true, show only an icon as the trigger (for mobile) */ + iconOnly?: boolean; }; export function ProfileSectionDropdown({ @@ -25,6 +28,7 @@ export function ProfileSectionDropdown({ editingProfile, hasProfileData, onSelectProfile, + iconOnly = false, }: ProfileSectionDropdownProps) { const { t } = useTranslation(["views/settings"]); @@ -39,22 +43,28 @@ export function ProfileSectionDropdown({ return ( - + {iconOnly ? ( + + ) : ( + + )} onSelectProfile(null)}> diff --git a/web/src/pages/Settings.tsx b/web/src/pages/Settings.tsx index 789a5ce0c..33941cf9d 100644 --- a/web/src/pages/Settings.tsx +++ b/web/src/pages/Settings.tsx @@ -1648,6 +1648,7 @@ export default function Settings() { profile, ) } + iconOnly /> )} - {activating && } + {activating && } )}