From e72bd4859dd62ca39319e9a8c25c7d408a7b919d Mon Sep 17 00:00:00 2001 From: lidu <2838749374@qq.com> Date: Wed, 18 Sep 2024 12:10:30 +0800 Subject: [PATCH] feat: enlarge image size --- src/app/api/frames/images/route.ts | 2 +- src/components/PollCard.tsx | 36 ++++++++++++++++-------------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/app/api/frames/images/route.ts b/src/app/api/frames/images/route.ts index d2df3da..655642c 100644 --- a/src/app/api/frames/images/route.ts +++ b/src/app/api/frames/images/route.ts @@ -5,7 +5,7 @@ import { IMAGE_ZOOM_SCALE } from '@/constants'; const imagesWorker = createImagesWorker({ imageOptions: { sizes: { - '1.91:1': { width: 764 * IMAGE_ZOOM_SCALE, height: 400 * IMAGE_ZOOM_SCALE }, + '1.91:1': { width: 1085 * IMAGE_ZOOM_SCALE, height: 568 * IMAGE_ZOOM_SCALE }, '1:1': { width: 600 * IMAGE_ZOOM_SCALE, height: 600 * IMAGE_ZOOM_SCALE }, }, }, diff --git a/src/components/PollCard.tsx b/src/components/PollCard.tsx index e55ae5e..ec63630 100644 --- a/src/components/PollCard.tsx +++ b/src/components/PollCard.tsx @@ -32,16 +32,16 @@ function VoteButton({ text, theme }: VoteButtonProps) { display: 'flex', alignItems: 'center', color: theme.secondTextColor, - height: 20 * IMAGE_ZOOM_SCALE, + height: 40 * IMAGE_ZOOM_SCALE, width: '100%', - fontSize: 18 * IMAGE_ZOOM_SCALE, + fontSize: 24 * IMAGE_ZOOM_SCALE, }} >
@@ -163,10 +164,10 @@ export function PollCard({ poll, locale, profileId }: PollCardProps) {