1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00

Add ability to set square icon in welcome wizard

This commit is contained in:
Chocobozzz 2025-07-28 15:48:53 +02:00
parent 37da276f9c
commit c9905ecd3a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
11 changed files with 53 additions and 15 deletions

View file

@ -1,4 +1,6 @@
export function findAppropriateImage<T extends { width: number, height: number }> (images: T[], wantedWidth: number) {
if (!images || images.length === 0) return undefined
const imagesSorted = images.sort((a, b) => a.width - b.width)
for (const image of imagesSorted) {