From 67287b06046b2132a52d249216526aec0005df98 Mon Sep 17 00:00:00 2001 From: Willie Zutz Date: Mon, 19 May 2025 23:31:29 -0600 Subject: [PATCH] feat(UI): Always show the selected focus mode --- src/components/MessageInputActions/Focus.tsx | 21 +++++++------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/components/MessageInputActions/Focus.tsx b/src/components/MessageInputActions/Focus.tsx index 70db951..a11e339 100644 --- a/src/components/MessageInputActions/Focus.tsx +++ b/src/components/MessageInputActions/Focus.tsx @@ -75,20 +75,13 @@ const Focus = ({ type="button" className=" text-black/50 dark:text-white/50 rounded-xl hover:bg-light-secondary dark:hover:bg-dark-secondary active:scale-95 transition duration-200 hover:text-black dark:hover:text-white" > - {focusMode !== 'webSearch' ? ( -
- {focusModes.find((mode) => mode.key === focusMode)?.icon} -

- {focusModes.find((mode) => mode.key === focusMode)?.title} -

- -
- ) : ( -
- -

Focus

-
- )} +
+ {focusModes.find((mode) => mode.key === focusMode)?.icon} +

+ {focusModes.find((mode) => mode.key === focusMode)?.title} +

+ +