From 1f62f4417431abbf7959b41c4af52f6db1b57782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9douard=20wautier?= Date: Thu, 7 Mar 2024 17:59:30 +0100 Subject: [PATCH] Styling InputBar for Preview --- front/components/assistant/TryAssistant.tsx | 23 +++++++++---------- .../conversation/input_bar/InputBar.tsx | 10 ++++++-- .../input_bar/InputBarContainer.tsx | 5 +++- .../assistant_builder/AssistantBuilder.tsx | 2 +- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/front/components/assistant/TryAssistant.tsx b/front/components/assistant/TryAssistant.tsx index ac3c96287f4d..8c594d1eb954 100644 --- a/front/components/assistant/TryAssistant.tsx +++ b/front/components/assistant/TryAssistant.tsx @@ -149,18 +149,17 @@ export function TryAssistant({ )} -
-
- -
+
+
diff --git a/front/components/assistant/conversation/input_bar/InputBar.tsx b/front/components/assistant/conversation/input_bar/InputBar.tsx index 72f33bad8001..040c0396ee94 100644 --- a/front/components/assistant/conversation/input_bar/InputBar.tsx +++ b/front/components/assistant/conversation/input_bar/InputBar.tsx @@ -48,6 +48,7 @@ export function AssistantInputBar({ additionalAgentConfiguration, hideQuickActions, disableAutoFocus = false, + isFloating = true, }: { owner: WorkspaceType; onSubmit: ( @@ -60,6 +61,7 @@ export function AssistantInputBar({ additionalAgentConfiguration?: LightAgentConfigurationType; hideQuickActions: boolean; disableAutoFocus: boolean; + isFloating?: boolean; }) { const { mutate } = useSWRConfig(); @@ -261,14 +263,18 @@ export function AssistantInputBar({ )} -
+
diff --git a/front/components/assistant/conversation/input_bar/InputBarContainer.tsx b/front/components/assistant/conversation/input_bar/InputBarContainer.tsx index 30b78dc929a7..d08674632ed5 100644 --- a/front/components/assistant/conversation/input_bar/InputBarContainer.tsx +++ b/front/components/assistant/conversation/input_bar/InputBarContainer.tsx @@ -95,7 +95,10 @@ const InputBarContainer = ({ ); return ( -
+