-
-
Notifications
You must be signed in to change notification settings - Fork 833
Conversation
Signed-off-by: Robin Townsend <[email protected]>
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.
Code wise it's fine of course, so largely a Design choice.
@robintown Can you add some before/after's to make this easier for design to review? |
This doesn't seem to be the case anymore. I just tested it with a regular 16:9 portrait video (1072 × 1920, 1:1.77) and an extremely narrow one (320 × 1280, 1:4). Both, when rendered, are getting their HTML
The CSS I'm closing this one, but let's reopen it if for some reason some |
@janogarcia Interesting, I can still reproduce the 'Before' photo using the same media on the latest develop version. However, it's probably better to leave this closed anyways, and instead come up with a solution to size videos like this. |
Oh, and one more note: The |
So, I guess it's maybe a bug on the server side, where the video attributes couldn't be parsed properly on upload for some reason? The screenshot I shared is from an encrypted room in the current production desktop app (macOS). If we provide a CSS Thanks for pointing #19498 out! |
@robintown Sorry, I didn't notice your latest comment before posting. |
Yeah, the specific reason this video did not have dimensions specified was because it was sent over a bridge, but it's something that can happen in general since the video event is generated by clients, not the server. |
I'm not sure if it's matching the video/poster dimension in any way or it's just a hard constraint set in place. One of those videos I used for testing is 1072 × 1920, and the generated poster image is 335x600. None of those being So I guess this is best fixed in the source, where that |
If that attribute is only available on videos uploaded directly through Element, but not on those coming from a bridge then I'd suggest figuring out how to sync that hard cap of I mean, having a single source of truth for that value. That's why I wouldn't recommend just patching it in CSS without tying it back to where that |
Context: friends send portrait videos which, due to their height being unbounded, often end up being 1.5 to 2 times the viewport height! While #5682 sets a max height as well, the situation in the meantime is practically unusable, so I'm proposing to at least give them the same max height as images currently have.
Type: defect
Here's what your changelog entry will look like:
🐛 Bug Fixes