design: redesign user pages

This commit is contained in:
Xylight committed 2024-07-18 18:55:21 -07:00
1 parent 5e9ea24709
commit cc0a7e2869
4 files changed
+149 -124

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
import { createAvatar } from '@dicebear/core'
import * as initials from '@dicebear/initials'
const sizes = [16, 32, 48, 64, 128, 256, 512]
const sizes = [16, 24, 32, 48, 64, 96, 128, 256, 512]
export let url: string | undefined
export let alt: string = ''
@@ -21,7 +21,7 @@
urlObj.searchParams.append('format', 'webp')
urlObj.searchParams.append(
'thumbnail',
findClosestNumber(sizes, res || width).toString()
findClosestNumber(sizes, (res || width) * 1.5).toString(),
)
return urlObj.toString()