Skip to content

Commit

Permalink
fix: og padding
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 18, 2024
1 parent 65a64fb commit 74fd89c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/(app)/og/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const HomeOGImage: FC<AggregateRoot> = ({ seo, user: { avatar } }) => {

fontFamily: 'Noto Sans, Inter, "Material Icons"',

padding: '50px 15rem',
padding: '80px 15rem',
alignItems: 'center',
justifyContent: 'space-between',
}}
Expand Down Expand Up @@ -198,7 +198,7 @@ export const GET = async (req: NextRequest) => {

let canShownTitle = ''

let leftContainerWidth = 1100
let leftContainerWidth = 1200 - 80 * 2
for (let i = 0; i < title.length; i++) {
if (leftContainerWidth < 0) break
// cjk 字符算 64 px
Expand Down Expand Up @@ -230,7 +230,7 @@ export const GET = async (req: NextRequest) => {
// fontFamily: 'LXGWWenKai',
fontFamily: 'Inter, Noto Sans, Inter, "Material Icons"',

padding: '50px',
padding: '80px',
alignItems: 'flex-end',
justifyContent: 'flex-end',
}}
Expand Down

0 comments on commit 74fd89c

Please sign in to comment.