|
1 |
| -import { AtSymbolIcon, PhotoIcon } from "@heroicons/react/24/outline"; |
| 1 | +import { AtSymbolIcon, PaperAirplaneIcon, PhotoIcon } from "@heroicons/react/24/outline"; |
2 | 2 | import { InputModifiers } from "core";
|
3 | 3 | import { modelSupportsImages, modelSupportsTools } from "core/llm/autodetect";
|
4 | 4 | import { useRef } from "react";
|
@@ -50,7 +50,8 @@ const StyledDiv = styled.div<{ isHidden?: boolean }>`
|
50 | 50 |
|
51 | 51 | const EnterButton = styled.button<{ isPrimary?: boolean }>`
|
52 | 52 | all: unset;
|
53 |
| - padding: 2px 4px; |
| 53 | + padding: 3px 4px; |
| 54 | + padding-bottom: 0px; |
54 | 55 | display: flex;
|
55 | 56 | align-items: center;
|
56 | 57 | background-color: ${(props) =>
|
@@ -83,6 +84,7 @@ interface InputToolbarProps {
|
83 | 84 | toolbarOptions?: ToolbarOptions;
|
84 | 85 | disabled?: boolean;
|
85 | 86 | isMainInput?: boolean;
|
| 87 | + hasText?: boolean; |
86 | 88 | }
|
87 | 89 |
|
88 | 90 | function InputToolbar(props: InputToolbarProps) {
|
@@ -223,10 +225,18 @@ function InputToolbar(props: InputToolbarProps) {
|
223 | 225 | }}
|
224 | 226 | disabled={isEnterDisabled}
|
225 | 227 | >
|
226 |
| - <span className="hidden md:inline"> |
227 |
| - ⏎ {props.toolbarOptions?.enterText ?? "Enter"} |
228 |
| - </span> |
229 |
| - <span className="md:hidden">⏎</span> |
| 228 | + <div data-tooltip-id="submit-tooltip"> |
| 229 | + <PaperAirplaneIcon |
| 230 | + className={`h-4 w-4 ${ |
| 231 | + props.hasText |
| 232 | + ? "text-[var(--vscode-editorForeground)]" |
| 233 | + : "text-[var(--vscode-descriptionForeground)]" |
| 234 | + } transition duration-150 ease-in-out`} |
| 235 | + /> |
| 236 | + </div> |
| 237 | + <ToolTip id="submit-tooltip" place="top-middle"> |
| 238 | + Send (Enter) |
| 239 | + </ToolTip> |
230 | 240 | </EnterButton>
|
231 | 241 | </div>
|
232 | 242 | </StyledDiv>
|
|
0 commit comments