platform icon indicating copy to clipboard operation
platform copied to clipboard

Add images sizes in Attachment

Open denis-tingaikin opened this issue 1 year ago • 4 comments

We need to have links images sizes to reserve space and avoid chat jumping

denis-tingaikin avatar Jan 29 '25 03:01 denis-tingaikin

Connected to Huly®: UBERF-9272

huly-github-staging avatar Jan 29 '25 03:01 huly-github-staging

Currently, the image size for link preview is

https://github.com/hcengineering/platform/blob/develop/plugins/attachment-resources/src/components/LinkPreviewPresenter.svelte#L80

Kristina Fefelova What size should we set?

denis-tingaikin avatar Jan 29 '25 03:01 denis-tingaikin

Link preview attachments now save the preview image's width and height in their metadata. The preview component uses those dimensions to reserve the right amount of space, so the chat should no longer jump when the image loads. This was added in #8294. This looks resolved, so the issue could be closed.

MichaelUray avatar Oct 17 '26 20:10 MichaelUray

@denis-tingaikin — based on the check described above, this looks resolved in the current code. Could you please close this issue if you agree? If you think it is not fixed yet, please describe what still goes wrong (steps, expected vs. actual behaviour), so it can be looked at again.

MichaelUray avatar Oct 20 '26 19:10 MichaelUray