mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
Revamped fix for copy button on hover in debugger.
This commit is contained in:
parent
cd8e330208
commit
d6911bc882
1 changed files with 10 additions and 8 deletions
|
|
@ -268,8 +268,16 @@ export const JSONNode = ({ data, ...restProps }) => {
|
|||
};
|
||||
|
||||
return (
|
||||
<div style={{ fontSize: '9px', marginTop: '0px', right: '10px' }} className="d-flex position-absolute">
|
||||
{enableCopyToClipboard ? (
|
||||
<div
|
||||
style={{
|
||||
paddingLeft: !enableCopyToClipboard ? '13px' : '0px', // Temporary fix for hover issue for copy value button. Need to remove this once inspector gets revamped.
|
||||
fontSize: '9px',
|
||||
marginTop: '0px',
|
||||
right: '10px',
|
||||
}}
|
||||
className="d-flex position-absolute"
|
||||
>
|
||||
{enableCopyToClipboard && (
|
||||
<ToolTip message={'Copy to clipboard'}>
|
||||
<span
|
||||
onClick={() => {
|
||||
|
|
@ -281,12 +289,6 @@ export const JSONNode = ({ data, ...restProps }) => {
|
|||
<DefaultCopyIcon />
|
||||
</span>
|
||||
</ToolTip>
|
||||
) : (
|
||||
// Temporary fix for hover issue for copy value button. Need to remove this once inspector gets revamped.
|
||||
<span
|
||||
style={{ height: '13px', width: '13px', marginBottom: '4px' }}
|
||||
className="mx-1 copy-to-clipboard"
|
||||
></span>
|
||||
)}
|
||||
<ToolTip message={'Copy value'}>
|
||||
<span
|
||||
|
|
|
|||
Loading…
Reference in a new issue