feat(app): copy buttons for assistant messages and code blocks
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user