Checklist
TagStudio Version
TagStudio v9.6.0/main
Operating System & Version
macOS 15.7.7
Description
After initially loading a library, performing a search or opening a new library will cause an issue with the thumbnail grid where it will no longer expand to fill the available window space. It can be shrunk when resizing the window smaller than the existing icon space, but resizing it larger will only let the icons take up a limited amount of space. Reapplying the search will update the icons to fill the space at first, but the issue reappears when attempting to resize again. It also appears that the scrollbar is appearing and disappearing based on where it expects the icons to normally be, not where they actually are on the screen.

Expected Behavior
The thumbnail grid should always reorganize to fit the available space, and the scrollbar should not disappear when items are cutoff on the screen.
Steps to Reproduce
- Open a TagStudio library with a decent amount of files (~20+)
- Resize the window larger and smaller, observing normal behavior
- Enter a search that also produces a decent amount of items or load a different library
- Repeat step 2, though this time notice how the thumbnails do not resize properly
Logs
Occasionally I'm able to get this error from the logs:
IndexError: list index out of range
Error calling Python override of QLayout::setGeometry(): Traceback (most recent call last):
File "/Users/cyanvoxel/Local/Dev/TagStudio/src/tagstudio/qt/thumb_grid_layout.py", line 218, in setGeometry
self.visible_changed.emit(self._entry_ids[start])
~~~~~~~~~~~~~~~^^^^^^^
IndexError: list index out of range
Checklist
TagStudio Version
TagStudio v9.6.0/
mainOperating System & Version
macOS 15.7.7
Description
After initially loading a library, performing a search or opening a new library will cause an issue with the thumbnail grid where it will no longer expand to fill the available window space. It can be shrunk when resizing the window smaller than the existing icon space, but resizing it larger will only let the icons take up a limited amount of space. Reapplying the search will update the icons to fill the space at first, but the issue reappears when attempting to resize again. It also appears that the scrollbar is appearing and disappearing based on where it expects the icons to normally be, not where they actually are on the screen.

Expected Behavior
The thumbnail grid should always reorganize to fit the available space, and the scrollbar should not disappear when items are cutoff on the screen.
Steps to Reproduce
Logs
Occasionally I'm able to get this error from the logs: