PlutoExtras.jl icon indicating copy to clipboard operation
PlutoExtras.jl copied to clipboard

Specify CSS icon

Open itafraze opened this issue 8 months ago • 3 comments

closes #38

itafraze avatar Apr 04 '25 16:04 itafraze

Hi @itafraze,

Thanks a lot for you interest in the package and for submitting this PR and sorry for the late in the reply.

The reason why there is no icon still is that I wanted first to add a tooltip with some information on how to use the BondTable but due to time I never effectively implemented this.

I would like to add an icon only after we have at least a very basic tooltip/description about this.

If you are willing to also add a very small description about the BondTable (I can help you with understanding features) I think we can merge with an icon as well :)

disberd avatar Apr 07 '25 12:04 disberd

Hi @disberd, sure, I can look into it. But I'm not sure what you mean by 'tooltip/description'.

itafraze avatar Apr 11 '25 12:04 itafraze

Thanks for this. I meant some box/div/description that comes up when hovering on the button.

For an example you can look at the popout element in the bond table which has the actual div with the bonds appear only when hovering over the icon: https://github.com/disberd/PlutoExtras.jl/blob/1582b78817aca057b3e83035a032742c5240985a/src/structbond/main_definitions.jl#L334-L381

Though this is of course not the only way to implement something similar (nor probably the best way to do it but I am not a javascript developer :P)

disberd avatar Apr 15 '25 10:04 disberd