From c1fbeac4e775f0326e4eea6b20e4ea443b62abdd Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Fri, 25 Sep 2026 01:58:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=8C=EF=B8=8F=20refactor:=20Read=20Them?= =?UTF-8?q?e=20Roles=20in=20Prose,=20Settings=20Dialog=20and=20Composer=20?= =?UTF-8?q?Surfaces=20(#16332)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit e79ed0ab371fc3d1e05a18854ea0a36584423548) Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16332 --- client/src/components/Chat/Input/ChatForm.tsx | 4 +- .../Chat/Menus/Endpoints/CustomMenu.tsx | 2 +- .../Chat/Menus/Endpoints/ModelSelector.tsx | 2 +- client/src/components/Nav/Settings/Dialog.tsx | 6 +- client/src/style.css | 68 ++-- .../mock/scenarios/clickhouse-theme.spec.ts | 5 +- .../mock/scenarios/theme-surfaces.spec.ts | 342 ++++++++++++++++++ packages/client/src/components/Composer.tsx | 2 +- 8 files changed, 388 insertions(+), 43 deletions(-) create mode 100644 e2e/specs/mock/scenarios/theme-surfaces.spec.ts diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsx index 993c51125b..3676a2a272 100644 --- a/client/src/components/Chat/Input/ChatForm.tsx +++ b/client/src/components/Chat/Input/ChatForm.tsx @@ -731,10 +731,10 @@ const ChatForm = memo(function ChatForm({ onClick={handleContainerClick} className={cn( /* The surface runs to the viewport floor below `sm`, where it is - squared off at the bottom (`rounded-t-3xl`) and no disclaimer + squared off at the bottom (`rounded-t-theme-surface-lg`) and no disclaimer follows it — so the action row is the last thing in it, with no band of padding under the buttons. */ - 'relative flex w-full grow flex-col overflow-hidden rounded-t-3xl sm:rounded-3xl', + 'rounded-t-theme-surface-lg sm:rounded-theme-surface-lg relative flex w-full grow flex-col overflow-hidden', composerSurfaceClasses(), isTextAreaFocused ? composerSurfaceShadow.focused : composerSurfaceShadow.blurred, /* Temporary-chat accent is a ChatForm-only override, not part of diff --git a/client/src/components/Chat/Menus/Endpoints/CustomMenu.tsx b/client/src/components/Chat/Menus/Endpoints/CustomMenu.tsx index 2860ec4b3a..56a89056f0 100644 --- a/client/src/components/Chat/Menus/Endpoints/CustomMenu.tsx +++ b/client/src/components/Chat/Menus/Endpoints/CustomMenu.tsx @@ -56,7 +56,7 @@ export const CustomMenu = React.forwardRef(func {...props} className={cn( !parent && - 'border-border-light text-text-primary flex h-10 w-full items-center justify-center gap-2 rounded-xl border px-3 py-2 text-sm', + 'border-border-light text-text-primary rounded-theme-control flex h-10 w-full items-center justify-center gap-2 border px-3 py-2 text-sm', parent ? nestedMenuStateClass : rootMenuStateClass, props.className, )} diff --git a/client/src/components/Chat/Menus/Endpoints/ModelSelector.tsx b/client/src/components/Chat/Menus/Endpoints/ModelSelector.tsx index 76b87cad71..defccd40da 100644 --- a/client/src/components/Chat/Menus/Endpoints/ModelSelector.tsx +++ b/client/src/components/Chat/Menus/Endpoints/ModelSelector.tsx @@ -73,7 +73,7 @@ function ModelSelectorContent() {