From 49261a611788784fe7f2b91630764dcfb4f6cf72 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 23 Sep 2024 18:36:20 -0700 Subject: [PATCH] remove input toolbar on smallest breakpoint --- gui/src/components/mainInput/InputToolbar.tsx | 2 +- gui/src/components/mainInput/TipTapEditor.tsx | 1 + .../components/modelSelection/ModelSelect.tsx | 118 +++++++++--------- 3 files changed, 60 insertions(+), 61 deletions(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 907ff7fed..367741b27 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -28,7 +28,6 @@ import ModelSelect from "../modelSelection/ModelSelect"; const StyledDiv = styled.div<{ isHidden: boolean }>` padding: 4px 0; - display: flex; justify-content: space-between; gap: 1px; background-color: ${vscInputBackground}; @@ -110,6 +109,7 @@ function InputToolbar(props: InputToolbarProps) { isHidden={props.hidden} onClick={props.onClick} id="input-toolbar" + className="hidden xs:flex" > diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index 2fc543907..a57d19bda 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -894,6 +894,7 @@ function TipTapEditor(props: TipTapEditorProps) { }); }} /> + {showDragOverMsg && modelSupportsImages( defaultModel.provider, diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index cfa3a2fe1..548d83537 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -304,67 +304,65 @@ function ModelSelect() { } return ( -
- { - if (val === defaultModel?.title) return; - dispatch(setDefaultModel({ title: val })); - await ideMessenger.request("update/modelChange", val); - }} - > -
- - - {modelSelectTitle(defaultModel) || "Select model"}{" "} -
+ +
+ ); }