Closed Mimanolis closed 3 months ago
+1 @marc-farre is this one we can fix? cc @luke-
The saved image is large. It's only a rendering issue.
Currently images are fixed to 80px width:
If we change to 200px it renders this way:
I think we should define the width via CSS to handle the many situations (small screen size and portrait format).
@luke- Would you like me to try a PR with CSS instead of this fixed 80px width?
@marc-farre Yes please. Thanks!
@luke- PR https://github.com/humhub/linkpreview/pull/21
With this PR, the image is 30% width of the wall entry width. And it has a maximum of 150px height (if the height exceeds, the width gets lower to preserve the image ration and keep the 10px space between the image and the text).
Desktop:
Mobile:
@marc-farre Thanks, looks good for me! I'll release a new module version now.
Is there a way to enlarge the image in the preview, is it module-based or humhub core-based of how the previews are displayed?