feat: 插件使用样式

This commit is contained in:
Hk-Gosuto 2023-07-21 13:25:50 +08:00
parent 377a50e2a6
commit 9223f95726
3 changed files with 50 additions and 0 deletions

View File

@ -348,6 +348,37 @@
}
}
.chat-message-checkmark {
display: inline-block;
margin-right: 5px;
height: 12px;
width: 12px;
color: #13a10e;
fill: #13a10e;
user-select: none;
backface-visibility: hidden;
transform: translateZ(0px);
}
.chat-message-tools-status {
display: flex;
justify-content: center;
align-items: center;
font-size: 12px;
margin-top: 5px;
line-height: 1.5;
}
.chat-message-tools-name {
color: #aaa;
}
.chat-message-tools-details {
margin-left: 5px;
font-weight: bold;
color: #999;
}
.chat-message-status {
font-size: 12px;
color: #aaa;

View File

@ -36,6 +36,7 @@ import StopIcon from "../icons/pause.svg";
import RobotIcon from "../icons/robot.svg";
import SearchCloseIcon from "../icons/search_close.svg";
import SearchOpenIcon from "../icons/search_open.svg";
import CheckmarkIcon from "../icons/checkmark.svg";
import {
ChatMessage,
@ -1148,6 +1149,21 @@ export function Chat() {
</div>
)}
</div>
<div>
<div className={styles["chat-message-tools-status"]}>
<div className={styles["chat-message-tools-name"]}>
<CheckmarkIcon
className={styles["chat-message-checkmark"]}
/>
web search:
<code className={styles["chat-message-tools-details"]}>
xxxxxxxxxxxxxxxx
</code>
</div>
</div>
</div>
{showTyping && (
<div className={styles["chat-message-status"]}>
{Locale.Chat.Typing}

3
app/icons/checkmark.svg Normal file
View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048">
<path d="M256 1088q0-26 19-45t45-19q26 0 45 19l403 402 915-914q19-19 45-19t45 19 19 45q0 26-19 45l-960 960q-19 19-45 19t-45-19l-448-448q-19-19-19-45z"></path>
</svg>

After

Width:  |  Height:  |  Size: 232 B