KamoCRM

Correct rotated thumbnail positioning and restore rotation transform

Fixkamo-internal
Ya
12 Aprili 2026, 19:18 UTC
Mwandishi
kamo
Ahadi ya
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.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei