diff --git a/web/src/lib/avatar.ts b/web/src/lib/avatar.ts index 0350e8e6..8259d7ce 100644 --- a/web/src/lib/avatar.ts +++ b/web/src/lib/avatar.ts @@ -1,4 +1,4 @@ // the service wants signed urls and the secret is server side, so this points // at the route that signs -export const avatarUrl = (did: string, tiny = false): string => - `/avatar/${encodeURIComponent(did)}${tiny ? "?size=tiny" : ""}`; +export const avatarUrl = (did: string, width?: number): string => + `/avatar/${encodeURIComponent(did)}${width ? `?size=${width}` : ""}`; diff --git a/web/src/lib/components/comment/Comment.svelte b/web/src/lib/components/comment/Comment.svelte index 8fd23d87..2550dd39 100644 --- a/web/src/lib/components/comment/Comment.svelte +++ b/web/src/lib/components/comment/Comment.svelte @@ -45,7 +45,7 @@ class={`flex gap-2 ${variant === "top" ? "border-b border-border-default bg-background-default px-6 py-4" : "py-4 pr-4"}`} >