From 30f6d90cfebff8da9cd9b83a4227dc12923da734 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+Berry-13@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:02:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=8C=EF=B8=8F=20style:=20Improve=20Dark?= =?UTF-8?q?=20Theme=20Accessibility=20(#2125)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * style: all landing page components * chore: converted all slate to gray, since slate doesnt work * style: assistant panel * style: basic UI components, userprovided, preset * style: update in multiple components * fix(PluginStoreDialog): justify-center * fixed some minor Ui styles * style(MultiSearch): update dark bg * style: update Convo styling * style: lower textarea max height slightly --------- Co-authored-by: Danny Avila --- client/src/components/Chat/Input/ChatForm.tsx | 4 +-- .../components/Chat/Input/Files/FilesView.tsx | 2 +- .../Chat/Input/Files/Table/DataTable.tsx | 2 +- .../components/Chat/Input/HeaderOptions.tsx | 4 +-- .../components/Chat/Input/OptionsPopover.tsx | 6 ++-- .../components/Chat/Input/PopoverButtons.tsx | 2 +- .../Chat/Menus/Endpoints/MenuItem.tsx | 4 +-- .../components/Chat/Menus/EndpointsMenu.tsx | 2 +- .../Chat/Menus/Presets/EditPresetDialog.tsx | 10 +++--- .../Chat/Menus/Presets/PresetItems.tsx | 10 +++--- .../src/components/Chat/Menus/PresetsMenu.tsx | 6 ++-- .../src/components/Chat/Menus/UI/MenuItem.tsx | 2 +- .../components/Chat/Menus/UI/TitleButton.tsx | 2 +- client/src/components/Conversations/Convo.tsx | 6 ++-- .../components/Conversations/RenameButton.tsx | 4 +-- .../Endpoints/EndpointOptionsPopover.tsx | 2 +- .../Endpoints/SaveAsPresetDialog.tsx | 2 +- .../Endpoints/Settings/Assistants.tsx | 2 -- .../components/Endpoints/Settings/OpenAI.tsx | 4 +-- .../Input/EndpointMenu/FileUpload.tsx | 2 +- .../components/Input/ModelSelect/BingAI.tsx | 4 +-- .../Input/SetKeyDialog/GoogleConfig.tsx | 2 +- .../Input/SetKeyDialog/InputWithLabel.tsx | 4 +-- .../Input/SetKeyDialog/OpenAIConfig.tsx | 31 +++++++++++-------- client/src/components/Nav/Nav.tsx | 13 ++++---- client/src/components/Nav/NavLinks.tsx | 8 ++--- client/src/components/Nav/NewChat.tsx | 4 +-- client/src/components/Nav/Settings.tsx | 20 ++++++------ .../Nav/SettingsTabs/Account/Avatar.tsx | 6 ++-- .../Plugins/Store/PluginAuthForm.tsx | 4 +-- .../Plugins/Store/PluginStoreDialog.tsx | 24 +++++++------- .../Plugins/Store/PluginStoreItem.tsx | 4 +-- .../SidePanel/Builder/ActionsAuth.tsx | 22 ++++++------- .../SidePanel/Builder/ActionsInput.tsx | 2 +- .../SidePanel/Builder/AssistantSelect.tsx | 4 +-- .../SidePanel/Builder/ContextButton.tsx | 2 +- .../components/SidePanel/Builder/Images.tsx | 2 +- .../SidePanel/Files/PanelFileCell.tsx | 2 +- client/src/components/SidePanel/Nav.tsx | 4 +-- client/src/components/SidePanel/SidePanel.tsx | 4 +-- client/src/components/SidePanel/Switcher.tsx | 2 +- client/src/components/Tools/ToolItem.tsx | 2 +- client/src/components/svg/EditIcon.tsx | 2 -- client/src/components/svg/index.ts | 1 - client/src/components/ui/AlertDialog.tsx | 10 +++--- client/src/components/ui/Button.tsx | 4 +-- client/src/components/ui/Checkbox.tsx | 2 +- client/src/components/ui/Dialog.tsx | 19 +++++------- client/src/components/ui/DialogTemplate.tsx | 4 +-- client/src/components/ui/Dropdown.tsx | 8 ++--- client/src/components/ui/InputNumber.tsx | 4 +-- client/src/components/ui/MultiSearch.tsx | 2 +- client/src/components/ui/MultiSelectPop.tsx | 6 ++-- client/src/components/ui/SelectDropDown.tsx | 4 +-- .../src/components/ui/SelectDropDownPop.tsx | 6 ++-- client/src/components/ui/Textarea.tsx | 2 +- client/src/style.css | 10 +++--- client/src/utils/index.ts | 4 +-- client/tailwind.config.cjs | 9 +++--- 59 files changed, 170 insertions(+), 175 deletions(-) diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsx index 5b49e7bb1f..8067eded4d 100644 --- a/client/src/components/Chat/Input/ChatForm.tsx +++ b/client/src/components/Chat/Input/ChatForm.tsx @@ -81,7 +81,7 @@ const ChatForm = ({ index = 0 }) => { >
-
+
{ : 'pl-3 md:pl-4', 'm-0 w-full resize-none border-0 bg-transparent py-[10px] pr-10 placeholder-black/50 focus:ring-0 focus-visible:ring-0 dark:bg-transparent dark:placeholder-white/50 md:py-3.5 md:pr-12 ', removeFocusOutlines, - 'max-h-[65vh] md:max-h-[85vh]', + 'max-h-[65vh] md:max-h-[75vh]', )} /> )} diff --git a/client/src/components/Chat/Input/Files/FilesView.tsx b/client/src/components/Chat/Input/Files/FilesView.tsx index 6a909d2fda..32acf6aa2f 100644 --- a/client/src/components/Chat/Input/Files/FilesView.tsx +++ b/client/src/components/Chat/Input/Files/FilesView.tsx @@ -27,7 +27,7 @@ export default function Files({ open, onOpenChange }) { return ( - + {localize('com_nav_my_files')} diff --git a/client/src/components/Chat/Input/Files/Table/DataTable.tsx b/client/src/components/Chat/Input/Files/Table/DataTable.tsx index 4185d1380f..5fd01964c4 100644 --- a/client/src/components/Chat/Input/Files/Table/DataTable.tsx +++ b/client/src/components/Chat/Input/Files/Table/DataTable.tsx @@ -143,7 +143,7 @@ export default function DataTable({ columns, data }: DataTablePro return ( {header.isPlaceholder diff --git a/client/src/components/Chat/Input/HeaderOptions.tsx b/client/src/components/Chat/Input/HeaderOptions.tsx index 1bfd4b142a..c0fcf61c71 100644 --- a/client/src/components/Chat/Input/HeaderOptions.tsx +++ b/client/src/components/Chat/Input/HeaderOptions.tsx @@ -81,8 +81,8 @@ export default function OptionsBar() { type="button" className={cn( cardStyle, - 'min-w-4 z-50 flex h-[40px] flex-none items-center justify-center px-3 focus:ring-0 focus:ring-offset-0', - 'hover:bg-gray-50 radix-state-open:bg-gray-50 dark:hover:bg-black/10 dark:radix-state-open:bg-black/20', + 'z-50 flex h-[40px] min-w-4 flex-none items-center justify-center px-3 focus:ring-0 focus:ring-offset-0', + 'hover:bg-gray-50 radix-state-open:bg-gray-50 dark:hover:bg-gray-700 dark:radix-state-open:bg-gray-700', )} onClick={triggerAdvancedMode} > diff --git a/client/src/components/Chat/Input/OptionsPopover.tsx b/client/src/components/Chat/Input/OptionsPopover.tsx index ea1d3daa63..e936156f8a 100644 --- a/client/src/components/Chat/Input/OptionsPopover.tsx +++ b/client/src/components/Chat/Input/OptionsPopover.tsx @@ -56,14 +56,14 @@ export default function OptionsPopover({
-
+
); } diff --git a/client/src/components/Endpoints/EndpointOptionsPopover.tsx b/client/src/components/Endpoints/EndpointOptionsPopover.tsx index dfa6e912e1..24f9dbb507 100644 --- a/client/src/components/Endpoints/EndpointOptionsPopover.tsx +++ b/client/src/components/Endpoints/EndpointOptionsPopover.tsx @@ -42,7 +42,7 @@ export default function EndpointOptionsPopover({ 'border-d-0 flex w-full flex-col overflow-hidden rounded-none border-s-0 border-t bg-white px-0 pb-[10px] dark:border-white/10 md:rounded-md md:border lg:w-[736px]', )} > -
+