I am working on a web-based image file explorer. It shows a grid of thumbnails for all images in the current directory, and a list of links at the top to navigate to subfolders. For a small amount of subfolders (most cases), this works fine:
However, when browsing a folder that has a very long list of subfolders, this will quickly become problematic:
Both the amount of folders and the length of the text are variable. There is no structure or explicit ordering, though they are sorted alphabetically.
I have thought about using a dropdown for navigation beyond a certain number of folders, but I think that would only shift the problem. Replacing it with search would work if you're trying to find something specific, but does not work when simply browsing.
What are some alternative ways to display such a large number of links?