Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

feat: add tooltips for cards #46

Merged
merged 19 commits into from
Feb 18, 2020
Merged

feat: add tooltips for cards #46

merged 19 commits into from
Feb 18, 2020

Conversation

eliseeborn
Copy link
Collaborator

some basic tooltips containing all the card data
I know we have tooltips in sense, these should probably look the same as well

src/card/card.js Outdated Show resolved Hide resolved
src/tree/box.js Outdated Show resolved Hide resolved
src/tree/box.js Outdated Show resolved Hide resolved
src/tree/box.js Outdated Show resolved Hide resolved
src/tree/box.js Outdated Show resolved Hide resolved
@eliseeborn eliseeborn marked this pull request as ready for review February 12, 2020 07:47
src/tree/render.js Outdated Show resolved Hide resolved
@eliseeborn
Copy link
Collaborator Author

the only things now that maybe should be fixed:

  • the tooltips are a constant size, so if there are very long attributes the text might overflow (but then the positioning will get tricky again)
  • they don't close after a certain time has passed like in sense
  • renaming the selections object, which I will do now

Copy link
Collaborator

@niekvanstaveren niekvanstaveren left a comment

Choose a reason for hiding this comment

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

Looks good. Let's get this in so I can continue with the zoom state. @haxxmaxx what do you think?

src/tree/box.js Outdated Show resolved Hide resolved
src/tree/box.js Outdated Show resolved Hide resolved
src/tree/box.js Outdated
Comment on lines 111 to 115
.on('mousedown', () => {
tooltip
.html('')
.attr('style', 'visibility: hidden;opacity: 0;');
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

This does not interfere with zoom/panning or making selections?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is mostly so that the tooltip will close when panning, though they can reopen, so it isn't very effective. The panning and selections do not seem to be affected.

yarn.lock Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
src/tree/box.js Outdated Show resolved Hide resolved
src/tree/box.js Outdated Show resolved Hide resolved
src/styles/treeCss.less Outdated Show resolved Hide resolved
@eliseeborn eliseeborn merged commit 4366b0c into master Feb 18, 2020
@eliseeborn eliseeborn deleted the fdq/tooltips branch February 18, 2020 09:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants