π feat(cyclops-ui): Copy Module Name and Namespace buttons#645
π feat(cyclops-ui): Copy Module Name and Namespace buttons#645KaradzaJuraj merged 9 commits intocyclops-ui:mainfrom
Conversation
|
@quest-bot loot #639 |
|
KaradzaJuraj
left a comment
There was a problem hiding this comment.
Hey @ArnavK-09, the icons are currently positioned at the bottom, but I'd like them to be positioned at the top.
You will probably need to change the styling of the <Title> to use flex for the module name copy. For the namespace copy, you can update the styling of the Description.Item
Also, color the icons grey!
"top" |
KaradzaJuraj
left a comment
There was a problem hiding this comment.
Hey @ArnavK-09 , sorry for doing this but I dislike this solution (my fault, I proposed it).
I think a better solution would be if just by clicking on the module name (or namespace), it copies it to your clipboard.
I propose the following:
- Remove the added buttons and styling
- Wrap
{module.name}&{module.targetNamespace}in<span>with theOnClickeffect of copying + style the cursor when hovering to "pointer" - Wrap the new
<span>with the<Tooltip>component so that when people hover over the name/namespace, a tooltip will appear to tell them they can copy it - update the tooltip text to "Copy module name to clipboard" and "Copy namespace to clipboard"
Let me know if this makes sense.
Yup, this looks better, |
Like this? |
KaradzaJuraj
left a comment
There was a problem hiding this comment.
Just a small change to finish this off π
sure, is this alr? |
KaradzaJuraj
left a comment
There was a problem hiding this comment.
Looking good! Thanks @ArnavK-09 π
|
π§ @ArnavK-09 congratulations for completing Quest #639 π° A reward has been credited to you. To claim your reward follow the instructions here. Questions? Check out the docs. |

closes #639
π Description
β Checks
βΉ Additional context