mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-04 15:30:27 +00:00
feat(app): copy buttons for assistant messages and code blocks
This commit is contained in:
parent
4ca088ed12
commit
fb007d6bab
8 changed files with 282 additions and 9 deletions
|
|
@ -106,8 +106,26 @@
|
|||
[data-component="text-part"] {
|
||||
width: 100%;
|
||||
|
||||
[data-component="markdown"] {
|
||||
[data-slot="text-part-body"] {
|
||||
position: relative;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
[data-slot="text-part-copy-wrapper"] {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s ease;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
[data-slot="text-part-body"]:hover [data-slot="text-part-copy-wrapper"] {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
[data-component="markdown"] {
|
||||
margin-top: 0;
|
||||
font-size: var(--font-size-base);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue