Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#127 from stonega/main
Browse files Browse the repository at this point in the history
fix: message top action style issue
  • Loading branch information
Yidadaa authored Mar 29, 2023
2 parents cfbe6d7 + 1c017b8 commit f5d775c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/components/home.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@
position: absolute;
right: 20px;
top: -26px;
left: 100px;
transition: all ease 0.3s;
opacity: 0;
pointer-events: none;
Expand All @@ -302,6 +303,7 @@
.chat-message-top-action {
opacity: 0.5;
color: var(--black);
white-space: nowrap;
cursor: pointer;

&:hover {
Expand Down
2 changes: 1 addition & 1 deletion app/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export function Chat(props: { showSideBar?: () => void }) {
</div>
)}
<div className={styles["chat-message-item"]}>
{!isUser && (
{(!isUser && !(message.preview || message.content.length === 0)) && (
<div className={styles["chat-message-top-actions"]}>
{message.streaming ? (
<div
Expand Down

0 comments on commit f5d775c

Please sign in to comment.