fix: correct position of the copy to clipboard button
Signed-off-by: Stanislav C <150145013+stanislav-c@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-techdocs': patch
|
||||
---
|
||||
|
||||
Fixed bug in CopyToClipboardButton component where positioning of the "Copy to clipboard" button in techdocs code snippets was broken in some cases
|
||||
@@ -67,7 +67,7 @@ const CopyToClipboardButton = ({ text }: CopyToClipboardButtonProps) => {
|
||||
leaveDelay={1000}
|
||||
>
|
||||
<IconButton
|
||||
style={{ color: 'inherit' }}
|
||||
style={{ color: 'inherit', position: 'absolute' }}
|
||||
className="md-clipboard md-icon"
|
||||
onClick={handleClick}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user