Fixes slideshow images not being full screen (#1849)

## Description
I accidentally removed the original fix/workaround from #1089 during a
merge in #1052, so this PR restores the fix.

### Related issues
Fixes #1736
Related to the original fix #1089

### Testing
Emulator with portrait and landscape images

## Screenshots
N/A

## AI or LLM usage
None
This commit is contained in:
Damontecres 2026-08-16 10:20:33 -04:00 • committed by GitHub
parent 007ac4801c
commit 22a949bc76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -408,8 +408,11 @@ fun SlideshowPage(
ImageRequest
.Builder(LocalContext.current)
.data(imageState.url)
.size(Size.ORIGINAL)
.transitionFactory(CrossFadeFactory(750.milliseconds))
.apply {
// Fixes images noting being full size when resolutions change
// See: https://github.com/damontecres/Wholphin/pull/1089
if (isZoomed) size(Size.ORIGINAL)
}.transitionFactory(CrossFadeFactory(750.milliseconds))
.useExistingImageAsPlaceholder(true)
.build(),
contentDescription = null,