diff --git a/app/components/exporter.module.scss b/app/components/exporter.module.scss index 1460ac766..7141bc0bd 100644 --- a/app/components/exporter.module.scss +++ b/app/components/exporter.module.scss @@ -131,7 +131,8 @@ position: absolute; top: 0px; left: 0px; - transform: scale(2); + height: 50%; + transform: scale(1.5); } .main-title { diff --git a/app/components/exporter.tsx b/app/components/exporter.tsx index 1465d89a8..1f9366252 100644 --- a/app/components/exporter.tsx +++ b/app/components/exporter.tsx @@ -7,17 +7,19 @@ import { copyToClipboard, downloadAs, useMobileScreen } from "../utils"; import CopyIcon from "../icons/copy.svg"; import LoadingIcon from "../icons/three-dots.svg"; -import ChatGptIcon from "../icons/chatgpt.svg"; +import ChatGptIcon from "../icons/chatgpt.png"; import ShareIcon from "../icons/share.svg"; +import BotIcon from "../icons/bot.png"; import DownloadIcon from "../icons/download.svg"; import { useMemo, useRef, useState } from "react"; import { MessageSelector, useMessageSelector } from "./message-selector"; import { Avatar } from "./emoji"; -import { MaskAvatar } from "./mask"; import dynamic from "next/dynamic"; +import NextImage from "next/image"; import { toBlob, toPng } from "html-to-image"; +import { DEFAULT_MASK_AVATAR } from "../store/mask"; const Markdown = dynamic(async () => (await import("./markdown")).Markdown, { loading: () => , @@ -253,6 +255,22 @@ export function PreviewActions(props: { ); } +function ExportAvatar(props: { avatar: string }) { + if (props.avatar === DEFAULT_MASK_AVATAR) { + return ( + + ); + } + + return ; +} + export function ImagePreviewer(props: { messages: ChatMessage[]; topic: string; @@ -319,7 +337,12 @@ export function ImagePreviewer(props: { >
- +
@@ -328,9 +351,9 @@ export function ImagePreviewer(props: { github.com/Yidadaa/ChatGPT-Next-Web
- + & - +
@@ -358,11 +381,9 @@ export function ImagePreviewer(props: { key={i} >
- {m.role === "user" ? ( - - ) : ( - - )} +
diff --git a/app/icons/bot.png b/app/icons/bot.png new file mode 100644 index 000000000..973799b5d Binary files /dev/null and b/app/icons/bot.png differ diff --git a/app/icons/chatgpt.png b/app/icons/chatgpt.png new file mode 100644 index 000000000..5e0df9de5 Binary files /dev/null and b/app/icons/chatgpt.png differ