From f61e91d07f240c227aaff642ffb4127b64fa460f Mon Sep 17 00:00:00 2001 From: Syed Muzamil <38078427+SyedMuzamilM@users.noreply.github.com> Date: Thu, 13 Apr 2023 16:28:13 +0530 Subject: [PATCH] fix: modal scrolling on small devices (#527) * fix: propmt side not showing on small devices * added the robot icon while chat is loading * fix: sidbar position * fix: modal not scrolling on small devices * fix: overlap between the modal and icons --- components/Chat/ChatLoader.tsx | 7 +++++-- components/Chat/VariableModal.tsx | 2 +- components/Chatbar/components/PluginKeys.tsx | 4 ++-- components/Promptbar/components/PromptModal.tsx | 6 +++--- components/Sidebar/Sidebar.tsx | 2 +- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/components/Chat/ChatLoader.tsx b/components/Chat/ChatLoader.tsx index 22661a1..1c7bfd2 100644 --- a/components/Chat/ChatLoader.tsx +++ b/components/Chat/ChatLoader.tsx @@ -1,7 +1,8 @@ +import { IconRobot } from '@tabler/icons-react'; import { IconDots } from '@tabler/icons-react'; import { FC } from 'react'; -interface Props {} +interface Props { } export const ChatLoader: FC = () => { return ( @@ -10,7 +11,9 @@ export const ChatLoader: FC = () => { style={{ overflowWrap: 'anywhere' }} >
-
AI:
+
+ +
diff --git a/components/Chat/VariableModal.tsx b/components/Chat/VariableModal.tsx index c95c79a..6a644d4 100644 --- a/components/Chat/VariableModal.tsx +++ b/components/Chat/VariableModal.tsx @@ -83,7 +83,7 @@ export const VariableModal: FC = ({ >
diff --git a/components/Chatbar/components/PluginKeys.tsx b/components/Chatbar/components/PluginKeys.tsx index da220c8..1dcfe17 100644 --- a/components/Chatbar/components/PluginKeys.tsx +++ b/components/Chatbar/components/PluginKeys.tsx @@ -63,7 +63,7 @@ export const PluginKeys = () => { className="z-100 fixed inset-0 flex items-center justify-center bg-black bg-opacity-50" onKeyDown={handleEnter} > -
+
{
Plugin Keys
diff --git a/components/Promptbar/components/PromptModal.tsx b/components/Promptbar/components/PromptModal.tsx index 4c01967..81bd26c 100644 --- a/components/Promptbar/components/PromptModal.tsx +++ b/components/Promptbar/components/PromptModal.tsx @@ -51,10 +51,10 @@ export const PromptModal: FC = ({ prompt, onClose, onUpdatePrompt }) => { return (
-
+
= ({ prompt, onClose, onUpdatePrompt }) => {
diff --git a/components/Sidebar/Sidebar.tsx b/components/Sidebar/Sidebar.tsx index eefdf7b..ddec00e 100644 --- a/components/Sidebar/Sidebar.tsx +++ b/components/Sidebar/Sidebar.tsx @@ -57,7 +57,7 @@ const Sidebar = ({ return isOpen ? (