File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,11 @@ export function InputWithCopy(props: { value: string; tip?: string; className?:
27
27
type = "text"
28
28
value = { props . value }
29
29
/>
30
- < div className = "cursor-pointer" onClick = { ( ) => handleCopyToClipboard ( props . value ) } >
31
- < div className = "absolute top-1/3 right-3" >
32
- < Tooltip content = { copied ? "Copied" : tip } >
33
- < img src = { copy } alt = "copy icon" title = { tip } />
34
- </ Tooltip >
35
- </ div >
36
- </ div >
30
+ < button className = "reset absolute top-1/3 right-3" onClick = { ( ) => handleCopyToClipboard ( props . value ) } >
31
+ < Tooltip content = { copied ? "Copied" : tip } >
32
+ < img src = { copy } alt = "copy icon" title = { tip } />
33
+ </ Tooltip >
34
+ </ button >
37
35
</ div >
38
36
) ;
39
37
}
Original file line number Diff line number Diff line change 55
55
button {
56
56
@apply cursor-pointer px-4 py-2 my-auto bg-green-600 dark:bg-green-700 hover:bg-green-700 dark:hover:bg-green-600 text-gray-100 dark:text-green-100 text-sm font-medium rounded-md focus:outline-none focus:ring transition ease-in-out;
57
57
}
58
+ button .reset {
59
+ @apply bg-transparent hover:bg-transparent font-normal rounded-none;
60
+ padding : unset;
61
+ text-align : start;
62
+ }
58
63
button .secondary {
59
64
@apply bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 text-gray-500 dark:text-gray-100 hover:text-gray-600;
60
65
}
You can’t perform that action at this time.
0 commit comments