DSPaul / COMPASS

TTRPG resource manager, bringing all your books, maps, etc. in one place.
https://www.compassapp.info
GNU General Public License v3.0
78 stars 8 forks source link

Tags are cropped in Card view #62

Closed lucastucious closed 4 months ago

lucastucious commented 8 months ago

image

System info (please complete the following information):

DSPaul commented 8 months ago

This is unfortunately a known issue, it has to do with a library that I use that massively improves render times, but cannot deal with dynamic sizing, this is the related issue from that library: sbaeumlisberger/VirtualizingWrapPanel#22 The author is working on a v2 of the library which adds support for this and I have already confirmed fixes this problem but it introduces other bugs in its place so it's not ready yet.

To determine the size of all the cards, the library will look at the size required to render the first one, and makes all the others the same size. And because the first item in your list doesn't have any tags, no space is reserved for them and all of them will have too little space to render them. You will see that giving the first one a tag will fix it ... until you have a book with multiple lines of tags and the problem comes back as you can see here. afbeelding

What I will do is make sure there is always space reserved for at least 1 line of tags as that should cover most use cases, as for multi line, it's waiting on that v2 update.