From 4d4a6b53f14c1fb0a646b656e462d01a196e42d6 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Sun, 20 Oct 2024 17:29:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20UI=20Style=20Enhancemen?= =?UTF-8?q?ts=20and=20Refactor=20for=20Improved=20Consistency=20and=20Layo?= =?UTF-8?q?ut=20(#4471)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🎨 style: adjust padding and class names in UI components * 🎨 style: update ExportModal export button, update Export button hover style, refactor ChatForm style and fixed isRTL styles, update AttachFile position * 🎨 style: remove redundant border classes in SettingsTabs components for cleaner UI * 🎨 style: refactor Account component, extract DisplayUsernameMessages, and remove redundant border classes for cleaner layout * 🎨 style: conditionally render Dropdown in ForkSettings component for improved UI responsiveness * 🎨 style: replace DropdownNoState with Dropdown in voice selection components for consistency * 🎨 style: update Settings component layout for better responsivenes on large screens * 🎨 style: remove redundant margin-top classes for cleaner layout in various components --- client/src/components/Audio/Voices.tsx | 16 +++---- .../components/Chat/ExportAndShareMenu.tsx | 2 +- client/src/components/Chat/Input/ChatForm.tsx | 18 ++++---- .../Chat/Input/Files/AttachFile.tsx | 2 +- .../src/components/Chat/Input/StopButton.tsx | 2 +- .../ConvoOptions/DeleteButton.tsx | 2 +- .../Nav/ExportConversation/ExportModal.tsx | 7 +-- client/src/components/Nav/Settings.tsx | 4 +- .../Nav/SettingsTabs/Account/Account.tsx | 36 +++------------- .../Account/DisplayUsernameMessages.tsx | 31 +++++++++++++ .../components/Nav/SettingsTabs/Beta/Beta.tsx | 2 +- .../Nav/SettingsTabs/Beta/CodeArtifacts.tsx | 2 +- .../components/Nav/SettingsTabs/Chat/Chat.tsx | 14 +++--- .../Nav/SettingsTabs/Chat/EnterToSend.tsx | 2 +- .../Nav/SettingsTabs/Chat/ForkSettings.tsx | 40 +++++++++-------- .../Nav/SettingsTabs/Chat/LaTeXParsing.tsx | 2 +- .../Nav/SettingsTabs/Chat/ModularChat.tsx | 2 +- .../Nav/SettingsTabs/Chat/SaveDraft.tsx | 2 +- .../Nav/SettingsTabs/Chat/ShowCodeSwitch.tsx | 2 +- .../SettingsTabs/Commands/AtCommandSwitch.tsx | 2 +- .../Nav/SettingsTabs/Commands/Commands.tsx | 6 +-- .../Commands/PlusCommandSwitch.tsx | 3 +- .../Commands/SlashCommandSwitch.tsx | 2 +- .../components/Nav/SettingsTabs/Data/Data.tsx | 10 ++--- .../SettingsTabs/General/AutoScrollSwitch.tsx | 2 +- .../Nav/SettingsTabs/General/General.tsx | 43 +++---------------- .../General/HideSidePanelSwitch.tsx | 2 +- .../General/UserMsgMarkdownSwitch.tsx | 2 +- .../src/components/Nav/SettingsTabs/index.ts | 1 - client/src/components/ui/OGDialogTemplate.tsx | 2 +- 30 files changed, 118 insertions(+), 145 deletions(-) create mode 100644 client/src/components/Nav/SettingsTabs/Account/DisplayUsernameMessages.tsx diff --git a/client/src/components/Audio/Voices.tsx b/client/src/components/Audio/Voices.tsx index ff37efaa7d..ab6b0a8609 100644 --- a/client/src/components/Audio/Voices.tsx +++ b/client/src/components/Audio/Voices.tsx @@ -3,6 +3,7 @@ import { useRecoilState } from 'recoil'; import type { Option } from '~/common'; import DropdownNoState from '~/components/ui/DropdownNoState'; import { useLocalize, useTTSBrowser, useTTSEdge, useTTSExternal } from '~/hooks'; +import { Dropdown } from '~/components/ui'; import { logger } from '~/utils'; import store from '~/store'; @@ -22,13 +23,12 @@ export function EdgeVoiceDropdown() { return (