Skip to content

Commit

Permalink
fix: set w-full first
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jan 4, 2024
1 parent 0aed3f7 commit 9b38e09
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/ui/link-card/LinkCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const LinkCard = (props: LinkCardProps) => {
}

type CardState = {
title: ReactNode
title?: ReactNode
desc?: ReactNode
image?: string
color?: string
Expand Down Expand Up @@ -431,6 +431,9 @@ const fetchTheMovieDBData: FetchObject = {
async fetch(id, setCardInfo, setFullUrl) {
const [type, realId] = id.split('/')

setCardInfo({
classNames: { cardRoot: '!w-full' },
})
const json = await fetch(`/api/tmdb/${type}/${realId}?language=zh-CN`)
.then((r) => r.json())
.catch((err) => {
Expand Down Expand Up @@ -472,6 +475,6 @@ const fetchTheMovieDBData: FetchObject = {
cardRoot: '!w-full',
},
})
setFullUrl(json.homepage)
json.homepage && setFullUrl(json.homepage)
},
}

1 comment on commit 9b38e09

@vercel
Copy link

@vercel vercel bot commented on 9b38e09 Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
springtide.vercel.app
innei.in
shiro-innei.vercel.app

Please sign in to comment.