mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 08:52:12 +00:00
feat(agents): Drop the hover Copy button from agent messages
This commit is contained in:
1 parent
c0179d3309
commit
be367c6341
2 files changed
+2
-22
No files matched your search
@@ -118,7 +118,7 @@
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* A message with its actions, shown on hover. */
|
||||
/* Your message with its actions, shown on hover. */
|
||||
.message {
|
||||
position: relative;
|
||||
}
|
||||
@@ -138,19 +138,6 @@
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
/* Over the bottom-right corner of an agent message (code blocks keep the top one), taking no room of its own. */
|
||||
.floatingActions {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: -14px;
|
||||
right: 0;
|
||||
margin: 0;
|
||||
padding: 1px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-small);
|
||||
background: var(--bg-popup);
|
||||
box-shadow: var(--shadow-tooltip);
|
||||
}
|
||||
.message:hover .messageActions,
|
||||
.messageActions:focus-within {
|
||||
opacity: 1;
|
||||
|
||||
@@ -368,14 +368,7 @@ function Entry({ task, entry }: { task: AgentTask; entry: AgentEntry }) {
|
||||
case "user":
|
||||
return <UserMessage task={task} entry={entry} />;
|
||||
case "agent":
|
||||
return (
|
||||
<div className={styles.message}>
|
||||
<Markdown text={entry.text} cwd={task.cwd} />
|
||||
<div className={clsx(styles.messageActions, styles.floatingActions)}>
|
||||
<IconButton icon="copy" title="Copy" size="small" onClick={() => void copyText(entry.text)} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
return <Markdown text={entry.text} cwd={task.cwd} />;
|
||||
case "thought":
|
||||
return (
|
||||
<details className={styles.thought}>
|
||||
|
||||
Reference in new issue
Block a user