File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/frame/components/ui/MarkdownContent Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,14 @@ export const UnrenderedMarkdownContent = ({
5555 } )
5656
5757 return (
58- < div >
58+ < div style = { { position : 'relative' } } >
5959 < IconButton
6060 size = "small"
6161 icon = { isCopied ? CheckIcon : CopyIcon }
6262 className = "btn-octicon"
63- aria-label = { t ( 'search.ai.response.copy_code' ) }
63+ aria-label = {
64+ isCopied ? t ( 'search.ai.response.copied_code' ) : t ( 'search.ai.response.copy_code' )
65+ }
6466 onClick = { async ( ) => {
6567 await copyToClipboard ( )
6668 announce ( t ( 'search.ai.response.copied_code' ) )
@@ -73,8 +75,8 @@ export const UnrenderedMarkdownContent = ({
7375 } }
7476 sx = { {
7577 position : 'absolute' ,
76- right : '1.3rem ' ,
77- marginTop : '-.7rem' ,
78+ right : '-.7rem ' ,
79+ top : '-.7rem' ,
7880 zIndex : 1 ,
7981 } }
8082 > </ IconButton >
You can’t perform that action at this time.
0 commit comments