-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
URL preview for some web sites is very long #2894
Comments
matrix-org/synapse#1430, but I couldn't find an issue open to track it from the riot side, so keeping this open too |
An easy fix to this may be to add some styles to limit the height of the preview. For example,
|
Yup, using |
Should be fixed by matrix-org/synapse/pull/2243 |
Though comments have been made that Riot should handle this too, so reopening for that discussion |
Still occurs, can it be solved in frontend somehow? Like limiting the height of the preview box and adding ellipsis? |
It looks like this has some webkit specific styles to accomplish this nowadays ⏩ and it even seems like that vendor prefixed property is also supported in everything else except Internet explorer, https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp#browser_compatibility
The preview is cut off after 3 lines of text: vs the full description in the DOM which you can see on wider screens: |
Here's an example using http://xion.io/drafts/rust-unit-test-placement.html (which I'm not sure will be there permanently). Somehow riot decided that the whole content of the post should be in the preview.
The text was updated successfully, but these errors were encountered: