design: redesign user pages
This commit is contained in:
1 parent
5e9ea24709
commit
cc0a7e2869
4 files changed
+149
-124
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user