Merge pull request #127 from stonega/main

fix: message top action style issue
This commit is contained in:
Yifei Zhang 2023-03-29 14:48:20 +08:00 committed by GitHub
commit f5d775c055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -292,6 +292,7 @@
position: absolute; position: absolute;
right: 20px; right: 20px;
top: -26px; top: -26px;
left: 100px;
transition: all ease 0.3s; transition: all ease 0.3s;
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
@ -302,6 +303,7 @@
.chat-message-top-action { .chat-message-top-action {
opacity: 0.5; opacity: 0.5;
color: var(--black); color: var(--black);
white-space: nowrap;
cursor: pointer; cursor: pointer;
&:hover { &:hover {

View File

@ -374,7 +374,7 @@ export function Chat(props: { showSideBar?: () => void }) {
</div> </div>
)} )}
<div className={styles["chat-message-item"]}> <div className={styles["chat-message-item"]}>
{!isUser && ( {(!isUser && !(message.preview || message.content.length === 0)) && (
<div className={styles["chat-message-top-actions"]}> <div className={styles["chat-message-top-actions"]}>
{message.streaming ? ( {message.streaming ? (
<div <div