UX: handle super tall images in onebox respectfully.
Tall images got distorted previously
This commit is contained in:
parent
ac4b4e30dc
commit
2fe131db9f
|
@ -156,10 +156,11 @@ aside.onebox {
|
|||
|
||||
.aspect-image {
|
||||
max-height: 170px;
|
||||
--magic-ratio: calc(var(--aspect-ratio) + 0.15);
|
||||
width: calc(128px * var(--magic-ratio));
|
||||
max-width: 20%;
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
||||
img {
|
||||
|
|
Loading…
Reference in New Issue