From 0f735bea37c72720e3ba798c6870ef0fb2886a16 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 12 Mar 2026 08:57:57 -0500 Subject: [PATCH] use icon only on mobile --- .../config-form/sections/BaseSection.tsx | 2 +- .../settings/ProfileSectionDropdown.tsx | 42 ++++++++++++------- web/src/pages/Settings.tsx | 1 + web/src/views/settings/ProfilesView.tsx | 2 +- web/src/views/settings/SingleSectionPage.tsx | 2 +- 5 files changed, 30 insertions(+), 19 deletions(-) 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 && } )}