Merge pull request #277 from devchat-ai/106-change-context-close-to-a-down-arrow

Update InputMessage component with new icon and closeButtonProps
This commit is contained in:
Rankin Zheng 2023-08-29 22:40:56 -05:00 committed by GitHub
commit 15d0ebe15d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
import { useMantineTheme, Flex, Stack, Accordion, Box, ActionIcon, ScrollArea, Center, Popover, Textarea, Text, Divider, Indicator, HoverCard, Drawer } from "@mantine/core";
import { useDisclosure, useListState, useResizeObserver, useTimeout } from "@mantine/hooks";
import { IconGitBranch, IconBook, IconX, IconSquareRoundedPlus, IconSend, IconPaperclip } from "@tabler/icons-react";
import { IconGitBranch, IconBook, IconX, IconSquareRoundedPlus, IconSend, IconPaperclip, IconChevronDown } from "@tabler/icons-react";
import React, { useState, useEffect } from "react";
import { IconGitBranchChecked, IconShellCommand, IconMouseRightClick } from "@/views/components/ChatIcons";
import messageUtil from '@/util/MessageUtil';
@ -293,6 +293,7 @@ const InputMessage = observer((props: any) => {
position="bottom"
title="DevChat Contexts"
overlayProps={{ opacity: 0.5, blur: 4 }}
closeButtonProps={{ children: <IconChevronDown size="1rem" /> }}
styles={{
content: {
background: 'var(--vscode-sideBar-background)',