1
Fork 0

fix: break thumbnails in sidebar to multiple lines

In the sidebar if when I have more than 3 thumbnails, only the first 3
is visible. That makes very hard to view or edit the faces that are
recognized on the photo.

The fix is to break the thumbnails to new line when needed by adding the
flex-wrap class to the container ul element.
This commit is contained in:
Lajos Koszti 2024-06-28 19:22:50 +02:00
parent cf1a66975d
commit d949acaa17
No known key found for this signature in database
GPG Key ID: 8D91584BE8447A53
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ const MediaSidebarPeople = ({ media }: MediaSidebarFacesProps) => {
className="overflow-x-auto mb-[-200px]" className="overflow-x-auto mb-[-200px]"
style={{ scrollbarWidth: 'none' }} style={{ scrollbarWidth: 'none' }}
> >
<ul className="flex gap-4 mx-4">{faceElms}</ul> <ul className="flex flex-wrap justify-evenly gap-4 mx-4">{faceElms}</ul>
<div className="h-[200px]"></div> <div className="h-[200px]"></div>
</div> </div>
</SidebarSection> </SidebarSection>