Feature request: figures and galleries with different widths of images, but same height #4534
positron96
started this conversation in
Ideas
Replies: 1 comment
-
I tried to use this approach: It needs to provide specific height, but otherwise works for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If gallery has images of different aspect rations, it is rendered with same image widths (half or third of content width) and different heights, which does not look very pleasant:
![image](https://private-user-images.githubusercontent.com/2095278/270479253-98adb1e7-0726-4fc6-8eae-c14a37a4c860.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMjIzMjEsIm5iZiI6MTczOTEyMjAyMSwicGF0aCI6Ii8yMDk1Mjc4LzI3MDQ3OTI1My05OGFkYjFlNy0wNzI2LTRmYzYtOGVhZS1jMTRhMzdhNGM4NjAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTcyNzAxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Yjk1ODFiYzA0ZmZjMDYxZTJjODc3ZjEzZTVmMDdjZmU4ODJmMDU0MWMzZTEwODQxN2FkNTUyNjFjZjE4ZTZmOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.mwDGaRAtjW2HGusqdLH529Cfi-dAat7WmyA9VH41HGQ)
However, Magnific popup supports aligning images by height with
image-popup-vertical-fit
class:I could not make this work in minimal-mistakes because my html/css/js-fu is too weak, and _reset.css seems to prevent this with width/height override.
Would be nice to have it as a feature in theme itself.
Beta Was this translation helpful? Give feedback.
All reactions