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:
parent
37da276f9c
commit
c9905ecd3a
11 changed files with 53 additions and 15 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue