mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-04 00:24:57 -05:00
There was an issue w/ the calculation causing an infinite loop but the fixed algorithm wasn't correct bc it doesn't take into account the grid gap correctly. This then breaks arrow key navigation. - Restore the previous calculation - Bail out if the gallery elements don't have any width, which causes the infinite loop - this part was missed when copying the logic from GalleryImageGrid