KamoCRM

Correct rotated thumbnail positioning and restore rotation transform

Fixkamo-internal
Shipped
12 ஏப்ரல், 2026 அன்று 7:18 PM 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

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing