nextclade icon indicating copy to clipboard operation
nextclade copied to clipboard

ENH: Pinnable tooltips, to allow copying

Open corneliusroemer opened this issue 2 years ago • 5 comments

It would be nice for Nextclade web users to be able to copy mutation profiles etc. directly from the UI.

Right now, this is possible only with some skill or luck, as one needs to move the mouse quickly enough onto the tooltip so that it doesn't disappear.

It would be more accessible, if a click on the area where the tooltip is activate would fix the toop, with a click outside of the tooltip (and maybe an x at the top right) deactivating the fixation.

I think I remember @trvrb mentioning being interested in this a while ago.

corneliusroemer avatar Feb 15 '22 12:02 corneliusroemer

I agree. The tooltips in general is not a great user experience. I considered implementing something better for some time now: https://github.com/nextstrain/nextclade/issues/83 https://github.com/nextstrain/nextclade/issues/84 https://github.com/nextstrain/nextclade/issues/85

ivan-aksamentov avatar Feb 15 '22 14:02 ivan-aksamentov

if a click on the area where the tooltip is activate would fix the toop, with a click outside of the tooltip (and maybe an x at the top right) deactivating the fixation

This will probably mess up all the touch screens. Might work given some effort though. But technically it would be just easier to have a normally positioned, conventional popup window, like the one with changelog, or similar to what auspice tree has. Could also fit a lot more data and be scrollable.

ivan-aksamentov avatar Feb 15 '22 14:02 ivan-aksamentov

What about adding a delay on purpose during which time one can move the mouse over the tooltip to fix it in place until the mouse moves away? This would not degrade touch experience

corneliusroemer avatar Feb 15 '22 14:02 corneliusroemer

Just as a workaround, I found (at least on Windows 10 chrome) if you get the pop-up up, right-click the mutation, then move your mouse over the pop-up, left-click to dismiss the 'right-click-menu' then you can move the mouse around within the popup, copy text, etc. Here's a gif: pop-up-sticky

(Sorry I don't know why the colours are weird - that's definitely from making the gif, not how the Nextclade page is actually showing up for me.)

emmahodcroft avatar Mar 10 '22 10:03 emmahodcroft

I made a little prototype https://github.com/nextstrain/nextclade/pull/749

ivan-aksamentov avatar Mar 10 '22 11:03 ivan-aksamentov