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

Chat inline link: show URL preview #1751

Closed
bradlegge opened this issue Jul 12, 2016 · 13 comments
Closed

Chat inline link: show URL preview #1751

bradlegge opened this issue Jul 12, 2016 · 13 comments

Comments

@bradlegge
Copy link

Chat inline link: when a link is posted to a chat, show URL preview as per design

  • Design: all ready
@bradlegge bradlegge added the rs1 label Jul 12, 2016
@bradlegge
Copy link
Author

@ara4n
Copy link
Member

ara4n commented Jul 15, 2016

So we have some fairly significant issues with the design/implementation now it's landed; summarising from the chatroom here so things don't get lost:

  • We've lost the ability to hide/show previews. Suggestion is to put it into the context menu, which would be fine for me - or to make the new link icon a toggle perhaps.
  • The previews take up way too much vertical whitespace, especially in rooms with lots of URLs (e.g. #vector-spam:matrix.org) - we need a rethink of how to handle this
  • The whitespace has regressed in the issue description causing descriptions to explode in vertical space usage. It needs to be white-space: normal or something.
  • Image previews for HTML URLs now take you straight to the URL. This is fine, but Image previews for Image URLs are confused as they have a "Read more" link, and the image is loaded directly rather than in a prettier lightbox, which seems like a step backwards.

On the plus side, the aesthetics are looking really nice :)

@stefanpearson
Copy link

We can amend this. However, the preview image needs more thought. I gather we want small thumbs in some conditions (Github etc), and larger images for editorial-based articles (as per the visuals). This is tricky with the data we have. If we're lucky, we can get the open-graph type and render large images under certain conditions (e.g. article). Otherwise, we're going to have to normalise them and show a small thumb, which may change the layout (columns instead of rows).

Thoughts?

Open-graph types: https://developers.facebook.com/docs/reference/opengraph/

@ara4n
Copy link
Member

ara4n commented Jul 19, 2016

For now I think we have no choice but to go for small thumbs, unless the
URL is primarily image-related (e.g. an image URL). We could try to do
some heuristics to decide what OG types (or other metadata) should
produce big thumbnails, but this feels fairly fragile to me. If it'd be
possible to have a more compact layout that we use by default it would
be appreciated. Sorry for the additional work.

On 19/07/2016 11:31, Stefan Pearson wrote:

We can amend this. However, the preview image needs more thought. I
gather we want small thumbs in some conditions (Github etc), and
larger images for editorial-based articles (as per the visuals). This
is tricky with the data we have. If we're lucky, we can get the
open-graph type and render large images under certain conditions
(e.g. article). Otherwise, we're going to have to normalise them and
show a small thumb, which may change the layout (columns instead of
rows).

Thoughts?

Open-graph types:
https://developers.facebook.com/docs/reference/opengraph/

— You are receiving this because you commented. Reply to this email
directly, view it on GitHub
#1751 (comment),

or mute the thread
https://github.com/notifications/unsubscribe-auth/ABO_vYGrN8PWuR7k7WynkBLv2Q9JbyIjks5qXKeKgaJpZM4JKU_J.

@bradlegge bradlegge added rs2 and removed rs1 labels Jul 27, 2016
@ara4n
Copy link
Member

ara4n commented Aug 24, 2016

The updated design at https://zpl.io/oPpjO is signed off and ready to go. The implementation needs to consider the 4 bulletpoints which were mentioned in the first comment.

@prinzpi
Copy link

prinzpi commented Nov 2, 2017

Hi,
I would like to know if there are any updates especially the bulletpoint 4 I'm interested in.
I have attached two screenshots (Slack / Riot), it would be great if the URL preview inside the Riot rooms looks similar as those from Slack.
In the screenshots the messages are forwarded with Matterbridge but it doesn't make a different, also by posting the URL without a bot there won't be any previews.

Thanks.

EDIT: Seems it was just a homeserver config "issue" - it's working :)

@turt2live
Copy link
Member

This seems implemented.

@lukebarnard1
Copy link
Contributor

I'm not sure if we ever considered

the 4 bulletpoints which were mentioned in the first comment.

@lukebarnard1
Copy link
Contributor

I most certainly did not unassign wmragg...

@makedir
Copy link

makedir commented May 3, 2018

Is it possible to load image previews in chat if someone posts urls? I cant find an option for this in the riot client.

@ordinarygulp
Copy link

Is it possible to load image previews in chat if someone posts urls? I cant find an option for this in the riot client.

Am looking for this functionality as well. Also for animated gifs

@MadLittleMods
Copy link
Contributor

Closing as URL previews work. Would be better to track improvements as separate issues.

@MartinDelille
Copy link

I don't have youtube preview on my server. Is there a config to enable ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests