-
Notifications
You must be signed in to change notification settings - Fork 440
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
Add support for opening files through viewer #2778
Add support for opening files through viewer #2778
Conversation
e2b370f
to
140ecca
Compare
Wouldn't this PR fix also #1805? |
Well you would have to click it once, it still wouldn't play "inline" as we only show the small thumbs inline |
That is okay for me 👍 |
140ecca
to
8363053
Compare
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.
Works
I have noticed that the highlight when hovering on a file overlaps the author name (although the hovering is fine when the file is grouped with the previous message from the user, in that case there is no overlap with the previous message). However right now I can not think of a way to fix that and after all it is not something terrible, so this can be fixed later. |
Time to fixup 😎 |
Note that the "path" property was already being passed to FilePreview, although it was not explicitly declared. At this time the Viewer can open only internal files, which are available only for registered users. Therefore the Viewer is not loaded for guests. Also, for the time being, due to a limitation in the Viewer API, when a file is opened the Viewer allows the user to iterate through all the files in the directory of that file instead of through all the files in the conversation, as it would have been expected. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
A hover colour is shown around the file preview when hovered/focused/active in a similar way to how list items or non primary buttons are highlighted. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Like done on links, " ↗" is now added to the name of file previews to hint that the file will be opened in a different tab/window. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
4326dc4
to
6ab75d7
Compare
Fix #2002
At this time the Viewer can open only internal files, which are available only for registered users. Therefore the Viewer is not loaded for guests.
Also, for the time being, due to a limitation in the Viewer API, when a file is opened the Viewer allows the user to iterate through all the files in the directory of that file instead of through all the files in the conversation, as it would have been expected.
Both issues will be solved in future releases of the viewer, so when that happens how the viewer is used will be updated in Talk.