We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79efd60 commit 10c4745Copy full SHA for 10c4745
1 file changed
src/frame/components/ui/MarkdownContent/UnrenderedMarkdownContent.tsx
@@ -55,12 +55,14 @@ export const UnrenderedMarkdownContent = ({
55
})
56
57
return (
58
- <div>
+ <div style={{ position: 'relative' }}>
59
<IconButton
60
size="small"
61
icon={isCopied ? CheckIcon : CopyIcon}
62
className="btn-octicon"
63
- aria-label={t('search.ai.response.copy_code')}
+ aria-label={
64
+ isCopied ? t('search.ai.response.copied_code') : t('search.ai.response.copy_code')
65
+ }
66
onClick={async () => {
67
await copyToClipboard()
68
announce(t('search.ai.response.copied_code'))
@@ -73,8 +75,8 @@ export const UnrenderedMarkdownContent = ({
73
75
}}
74
76
sx={{
77
position: 'absolute',
- right: '1.3rem',
- marginTop: '-.7rem',
78
+ right: '-.7rem',
79
+ top: '-.7rem',
80
zIndex: 1,
81
82
></IconButton>
0 commit comments