diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-04-24 01:33:55 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-04-24 01:33:55 +1000 |
| commit | 86b14ee2ba1c7f2aef7ea65adba36cef8eb2c90a (patch) | |
| tree | 60142d1e4e779d73a8137e854fcc177993a0e25a /Pages | |
| parent | edbda3752ebc5236bff709187a815e96d9635c4c (diff) | |
Fix transform originzoom
Diffstat (limited to 'Pages')
| -rw-r--r-- | Pages/ViewMedia.razor.css | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Pages/ViewMedia.razor.css b/Pages/ViewMedia.razor.css index 924691d..78a4608 100644 --- a/Pages/ViewMedia.razor.css +++ b/Pages/ViewMedia.razor.css @@ -24,7 +24,7 @@ div#image-container { flex: 1 0 0; height: 100%; justify-content: center; - overflow: hidden; + overflow: auto; padding: var(--size-default-gap); width: 100%; } @@ -34,12 +34,13 @@ div#image-container:active { } div#image-container > img { - display: block; - max-height: 100%; - max-width: 100%; - object-fit: contain; - transition: transform 0.1s ease-out; - user-select: none; + display: block; + max-height: 100%; + max-width: 100%; + object-fit: contain; + transform-origin: top left; + transition: transform 0.1s ease-out; + user-select: none; } div#metadata-show-button { |
