social-app icon indicating copy to clipboard operation
social-app copied to clipboard

Images expand to only half of the screen when on folding phones, when screen is unfolded

Open sharph opened this issue 1 year ago • 2 comments

Describe the bug

Images expand to only half of the screen when on folding phones -- in this case, a Samsung Galaxy Z Fold3 -- when screen is unfolded.

Screenshots

signal-2023-12-22-164940_002 signal-2023-12-22-164940_003

Details

  • Platform: Android
  • Platform version: Samsing Galaxy Z Fold3, One UI version 5.1.1, Android 13
  • App version: 1.60.0 (51)

sharph avatar Dec 22 '23 21:12 sharph

@sharph as i've been tinkering with lightbox improvements...is this happening when you open the image without it being unfolded and then it doesn't resize once you unfold it? if that's the case, rather easy fix by using the useWindowDimensions() hook to get screen dimensions instead of Dimensions.get().

haileyok avatar Dec 27 '23 22:12 haileyok

@haileyok Sorry for the long delay here!

Whenever the screen is folded/unfolded the app resets -- I see the butterfly splash.

That said, there does seem to be a memory effect from the folded state from when the app was first opened.

For example:

I can start the app with the phone folded, unfold the phone, tap an image, see the image taking up half the screen.

I can force quit the app, start the app in the unfolded state, then fold the phone, tap an image, and see the image sized too big for the folded screen.

Hope this helps!

sharph avatar Feb 14 '24 20:02 sharph