Correct rotated thumbnail positioning and restore rotation transform

Fixkamo-internal
Shipped
12 Aprili 2026, 19:18 UTC
Author
kamo
Commit
f966663

Two bugs in ThumbnailCanvas: 1. Replaced `height: \`${displayAspect * 100}%\`` (percentage height on abs- positioned element — unreliable when containing block height comes from padding-top) with `aspectRatio: String(baseAspect)` so the browser derives height from the explicitly-set width. Width is now `baseAspect * 100%` of containerWidth, giving the portrait CSS box (H × W) needed to fill the landscape container after rotation. 2. Removed `transform` from thumbFadeIn keyframes. CSS animations override inline styles for the same property, so animating `transform: scale(...)` was clobbering the inline `transform: translate(-50%,-50%) rotate(Ndeg)` once the image loaded, causing the rotation to disappear and the image to jump.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei