Closed AprilSylph closed 1 year ago
https://github.com/AprilSylph/Outbox-for-Tumblr/blob/a2e9e4eba365831481d2c6151552199d6f858437/src/outbox.css#L441-L443
This CSS assumes the video width is 540px, which is usually correct. However, post width can shrink according to the viewport. The universally correct value would be:
540px
height: calc(min(100vw, 540px) * (9 / 16));
https://github.com/AprilSylph/Outbox-for-Tumblr/blob/a2e9e4eba365831481d2c6151552199d6f858437/src/outbox.css#L441-L443
This CSS assumes the video width is
540px
, which is usually correct. However, post width can shrink according to the viewport. The universally correct value would be: