-
Notifications
You must be signed in to change notification settings - Fork 6
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
Media Previewer #767
Merged
Merged
Media Previewer #767
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… self positioning, image re-positioning, and scrollable height setting
…t only content links get processed, as opposed to footer links as well, clean up prop names
|
||
highlightMedia: -> | ||
{mediaDOMOnParent} = @props | ||
mediaDOMOnParent.classList.add('target') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: Can this be something like link-target
? The term target
is already used in other parts of the code (but not CSS) to describe other things
…it's linker, handle multiple images in tutor-popover, minor clean up
…erflow as well for tutor-popover
… tests so then i did that wierd function = null thing on componentWillUnmount, but that doesn't seem necessary anymore, so yay!
…ive for travis push
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Combo #725 and #756
Media/link viewer
The jumping links was driving me straight up nuts
![nuts!](https://camo.githubusercontent.com/2a50aa4f1a9671a5de4dc76593783086df9e00d197c394fae3da5f61674543e6/687474703a2f2f696d61676573322e66616e706f702e636f6d2f696d6167652f70686f746f732f393830303030302f53637261742d616e642d6869732d6e75742d616e696d617465642d6963652d6167652d393835343735322d3132382d3132382e676966)
addresses #758
To do
Table preview
If media is not even on the current page
links externally to ref book, but shows preview on hover
If media is not visible/partially visible
If media is more than half visible
For table, if partially visible
Scrollable inner content, esp useful for big tables
Scrollable for figures as well
Is smart about where to open up viewer
opens to the left when too close to the right
![screen shot 2015-09-11 at 7 21 25 pm](https://cloud.githubusercontent.com/assets/2483873/9828897/5371a460-58ba-11e5-9447-4be67a1df2f0.png)
preview for figure in another module/page/whatever
in both iReading and Ref Book
Does not link externally in iReading
Does link externally in reference book view
Even makes the moving man in an interactive step
look cooler
![previewer](https://cloud.githubusercontent.com/assets/2483873/10053158/0337dc14-61f0-11e5-95ba-d9fee2d88b9a.gif)
With image loading state