Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jidea-191 Add small delay to parameter option tooltips #88

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

david-mears-2
Copy link
Contributor

This is to make it slightly less visually chaotic when quickly mousing through different options - avoids obscuring options when you are trying to select them

This is to make it slightly less visually chaotic when quickly mousing
through different options - avoids obscuring options when you are trying
to select them
Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 1.62%. Comparing base (815eba0) to head (0ad75e7).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #88   +/-   ##
=======================================
  Coverage    1.62%    1.62%           
=======================================
  Files          54       54           
  Lines      146163   146164    +1     
  Branches      306      306           
=======================================
+ Hits         2379     2380    +1     
  Misses     143768   143768           
  Partials       16       16           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@david-mears-2
Copy link
Contributor Author

Please review at your leisure!

@EmmaLRussell
Copy link
Contributor

@EmmaLRussell EmmaLRussell changed the title Add small delay to parameter option tooltips jidea-191 Add small delay to parameter option tooltips Nov 5, 2024
Copy link
Contributor

@EmmaLRussell EmmaLRussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's annoying that the None option is getting placed on the right since the tooltip width was increased. Could slim it down to fit it above again to avoid the obscuring problem? But this is fine too.

Could you align the package version numbers before merging please?

Comment on lines 3 to 9
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "daedalus-web-app",
"version": "0.0.2",
"version": "0.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a bit iffy. We should have updated the package-lock when we updated the version, but it should be 0.1.1 by now - or 0.1.2 if you want to update for this change.

@@ -30,6 +30,7 @@
:key="option.id"
:content="option.description"
placement="top"
:delay="100"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite short, but seems fine. It does mean that you get the same delay on hide. I tried using a structured delay i..e :delay="{'show': 100, 'hide': 5}" but found that gave some weird effects, like tooltips hanging around when they should have been removed or even appearing at the start of the DOM!

@david-mears-2
Copy link
Contributor Author

It's annoying that the None option is getting placed on the right since the tooltip width was increased. Could slim it down to fit it above again to avoid the obscuring problem? But this is fine too.

I agree. But I think making all tooltips narrow enough to prevent this (175px) results in them being too narrow and that's worse overall.

@david-mears-2 david-mears-2 merged commit af05202 into main Nov 11, 2024
6 checks passed
@david-mears-2 david-mears-2 deleted the delay-param-option-tooltips branch November 11, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants