From eae5a8a2e6722d233856d0a2958e2f894c0202d2 Mon Sep 17 00:00:00 2001 From: Yidadaa Date: Mon, 10 Apr 2023 00:00:36 +0800 Subject: [PATCH] feat: #577 maximum / minimium icon --- app/components/chat.tsx | 15 ++++++++++- app/components/home.module.scss | 1 + app/icons/max.svg | 41 ++++++++++++++++++++++++++++++ app/icons/min.svg | 45 +++++++++++++++++++++++++++++++++ app/icons/share.svg | 17 +++++++++++++ 5 files changed, 118 insertions(+), 1 deletion(-) create mode 100644 app/icons/max.svg create mode 100644 app/icons/min.svg create mode 100644 app/icons/share.svg diff --git a/app/components/chat.tsx b/app/components/chat.tsx index fbac9f2c..d25deec8 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -3,7 +3,7 @@ import { memo, useState, useRef, useEffect, useLayoutEffect } from "react"; import SendWhiteIcon from "../icons/send-white.svg"; import BrainIcon from "../icons/brain.svg"; -import ExportIcon from "../icons/export.svg"; +import ExportIcon from "../icons/share.svg"; import ReturnIcon from "../icons/return.svg"; import CopyIcon from "../icons/copy.svg"; import DownloadIcon from "../icons/download.svg"; @@ -11,6 +11,8 @@ import LoadingIcon from "../icons/three-dots.svg"; import BotIcon from "../icons/bot.svg"; import AddIcon from "../icons/add.svg"; import DeleteIcon from "../icons/delete.svg"; +import MaxIcon from "../icons/max.svg"; +import MinIcon from "../icons/min.svg"; import { Message, @@ -591,6 +593,17 @@ export function Chat(props: { }} /> +
+ : } + bordered + onClick={() => { + chatStore.updateConfig( + (config) => (config.tightBorder = !config.tightBorder), + ); + }} + /> +
+ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/icons/min.svg b/app/icons/min.svg new file mode 100644 index 00000000..3be5cd3f --- /dev/null +++ b/app/icons/min.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/icons/share.svg b/app/icons/share.svg new file mode 100644 index 00000000..735b8196 --- /dev/null +++ b/app/icons/share.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + \ No newline at end of file