fix: remove explicit size:l from avatar URLs
- Now uses default size (m) which is omitted from URL - Cleaner URLs without size parameter
This commit is contained in:
1 parent
0aef27efc4
commit
49185dd7a9
8 files changed
+5
-8
No files matched your search
@@ -205,7 +205,7 @@ export default async function GuildPage({
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
className="avatar"
|
||||
src={avatarImageUrl(m.look, { size: "l" })}
|
||||
src={avatarImageUrl(m.look)}
|
||||
alt={`${m.username} avatar`}
|
||||
width={50}
|
||||
height={75}
|
||||
|
||||
@@ -269,7 +269,6 @@ export default async function MePage({
|
||||
const referralLink = `/register?ref=${encodeURIComponent(user.username)}`;
|
||||
|
||||
const avatarFull = avatarImageUrl(user.look, {
|
||||
size: "l",
|
||||
direction: 2,
|
||||
});
|
||||
content = (
|
||||
|
||||
@@ -40,7 +40,7 @@ export default async function SettingsPage() {
|
||||
|
||||
if (!user) redirect("/login");
|
||||
|
||||
const avatar = avatarImageUrl(user.look, { size: "l" });
|
||||
const avatar = avatarImageUrl(user.look);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-6 pb-14">
|
||||
|
||||
@@ -107,7 +107,7 @@ export default async function ProfilePage({
|
||||
|
||||
if (!user) notFound();
|
||||
|
||||
const avatar = avatarImageUrl(user.look, { size: "l" });
|
||||
const avatar = avatarImageUrl(user.look);
|
||||
const registered = formatDate(new Date(user.accountCreated * 1000), "date");
|
||||
const meId = Number(session?.user?.id);
|
||||
const isLoggedIn = Number.isInteger(meId) && meId > 0;
|
||||
|
||||
@@ -75,7 +75,6 @@ function AvatarPreview({ type, id }: { type?: string; id?: number }) {
|
||||
return (
|
||||
<img
|
||||
src={getAvatarUrl(figure, {
|
||||
size: "l",
|
||||
direction: 2,
|
||||
headDirection: 3,
|
||||
headOnly: HEAD_TYPES.has(type),
|
||||
|
||||
@@ -132,7 +132,7 @@ export default async function ModTeamPage() {
|
||||
<div className="relative">
|
||||
<AvatarImage
|
||||
figure={member.look}
|
||||
options={{ headOnly: true, size: "l" }}
|
||||
options={{ headOnly: true }}
|
||||
alt={member.username}
|
||||
width={32}
|
||||
height={32}
|
||||
|
||||
@@ -120,7 +120,7 @@ export default async function ModTeamLitePage() {
|
||||
<div className="relative">
|
||||
<AvatarImage
|
||||
figure={member.look}
|
||||
options={{ headOnly: true, size: "l" }}
|
||||
options={{ headOnly: true }}
|
||||
alt={member.username}
|
||||
width={32}
|
||||
height={32}
|
||||
|
||||
@@ -43,7 +43,6 @@ export default async function ModUserDetailPage({
|
||||
<div className="flex items-center gap-4">
|
||||
<img
|
||||
src={getAvatarUrl(user.look, {
|
||||
size: "l",
|
||||
direction: 2,
|
||||
headDirection: 2,
|
||||
})}
|
||||
|
||||
Reference in new issue
Block a user