UI: Make preview images ratio fixed #28

Merged
Márton Lente merged 3 commits from martonlente/extensions-website:ui-images-preview into main 2024-02-20 18:05:50 +01:00

Part of #27

This pull request makes cards' preview images' aspect ratio 16:9. The preview images are shown in their 16:9 containers, aligned to the center, filling the container size, no matter the images' physical size.

Part of #27 This pull request makes cards' preview images' aspect ratio 16:9. The preview images are shown in their 16:9 containers, aligned to the center, filling the container size, no matter the images' physical size.
Márton Lente added 1 commit 2024-02-20 11:04:51 +01:00

This seems to be working. However the mini preview card is broken with it:

image

This seems to be working. However the mini preview card is broken with it: ![image](/attachments/4400b1d3-30bb-4f61-ada5-bc966ad29c5f)

And even if we are smart and do what this patch does, I think we should still hint/tell the users to favor 16:9 images (or whatever aspect ration you are reinforcing).

And even if we are smart and do what this patch does, I think we should still hint/tell the users to favor 16:9 images (or whatever aspect ration you are reinforcing).
Márton Lente added 1 commit 2024-02-20 14:33:12 +01:00
Márton Lente added 1 commit 2024-02-20 14:40:31 +01:00
Dalai Felinto approved these changes 2024-02-20 17:57:57 +01:00
Dalai Felinto left a comment
Owner

LGTM

LGTM
Márton Lente merged commit 3fc794bbf9 into main 2024-02-20 18:05:50 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/extensions-website#28
No description provided.