structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
232 stars 28 forks source link

Thumbnails disappear with more than 20 views #2

Closed eugeneniemand closed 2 years ago

eugeneniemand commented 2 years ago

With 20 or less views the navigation pane renders thumbnails like this image However add one more view and they disappear and looks like this image Is this limitation by design or a bug?

simonbrowndotje commented 2 years ago

It's a limitation by design ... the thumbnails are served up dynamically, and there's a performance impact when too many are shown.

eugeneniemand commented 2 years ago

Ah ok, it would be nice to have this a configuration option to allow the consumer to decide if they are happy with the performance impact, alternatively do some lazy loading as you scroll to only load the thumbnails when coming into view. 20 thumbnails on my machine may be very different than 20 on your machine; I assume the complexity of the view may also have an impact. If this is not possible maybe render a little message where thumbnail would have been to say "thumbnail limit exceeded". At a minimum I would like this to be in the docs as it took me some time to realise this was the issue. I reverted all my changes, then pulled the latest image, then tried the main branch and only after speaking to a colleague figured out there is an arbitrary limit.

simonbrowndotje commented 2 years ago

The limit has now been removed.