Skip to content

Commit

Permalink
πŸ› fix: Fix size
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Dec 6, 2023
1 parent f8c4721 commit 0f00424
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions api/sponsor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ export default async function handler(request: Request): Promise<any> {
try {
const { searchParams } = new URL(request.url);

const avatarSize = getNumber(searchParams.get('avatarSize'));
const width = getNumber(searchParams.get('width'), 800);
const height = getNumber(searchParams.get('height'), 88);
const padding = getNumber(searchParams.get('padding'));
const avatarSize = getNumber(searchParams.get('avatarSize'), 64 * 2);
const width = getNumber(searchParams.get('width'), 800 * 2);
const height = getNumber(searchParams.get('height'), 88 * 2);
const themeMode = searchParams.get('themeMode') === 'dark' ? 'dark' : 'light';
const id = searchParams.get('id') || 'lobehub';
const data = (await getData(id)) as any;
Expand All @@ -53,7 +52,6 @@ export default async function handler(request: Request): Promise<any> {
<Sponsor
avatarSize={avatarSize}
data={data}
padding={padding}
style={{ fontFamily: '"HarmonyOS Sans"' }}
themeMode={themeMode}
width={width}
Expand Down

0 comments on commit 0f00424

Please sign in to comment.