I have the gallery in a flex grid set to 1fr. When loaded, everything look right. After clicking the button to see the image in fullscreen and exiting fullscreen, the gallery has shrunken to a very small size. Looking in the debugger, the height=500px and width=100%. After fullscreen and exiting fullscreen, these are changed height=100px and width=auto by the code.
I have the gallery in a flex grid set to 1fr. When loaded, everything look right. After clicking the button to see the image in fullscreen and exiting fullscreen, the gallery has shrunken to a very small size. Looking in the debugger, the height=500px and width=100%. After fullscreen and exiting fullscreen, these are changed height=100px and width=auto by the code.