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

Only show copy button if there is text to copy #943

Merged
merged 2 commits into from
Aug 14, 2017

Conversation

BenRussert
Copy link
Member

@BenRussert BenRussert commented Aug 13, 2017

This is one of the open items in #796. If there is no innerText to copy the copy icon should not show in the result view toolbar.

Since there won't always be an export button anymore, i've also moved the execution count display to a close button tooltip.

I tagged as wip because this seems to break the expand button, but wanted to open anyway since im running out of weekend! Free emoji waiting for you if you find the bug. Edit: I dont think this pr has the issue, but I am not sure the expand button is working correctly (possibly just on my machine and possibly only as of atom 1.19, I have the same issue on hydrogen v1.19 release)

no-copy-if-no-innertext

New tooltip:
close-button-tooltip

Copy link
Member

@lgeiger lgeiger left a comment

Choose a reason for hiding this comment

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

This is so much cleaner now, thanks!

I also experienced strange issues with the expand button but I think the underlying issue is in Atom core: atom/atom#15282

@lgeiger lgeiger merged commit ed0947f into nteract:master Aug 14, 2017
@BenRussert BenRussert deleted the no-text-no-copybutton branch August 15, 2017 03:26
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.

3 participants