Skip to content

Commit

Permalink
fix: full movie card
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jan 4, 2024
1 parent bfb8886 commit 5934fc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/ui/link-card/LinkCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 51,7 @@ type CardState = {

classNames?: Partial<{
image: string
cardRoot: string
}>
}

Expand Down Expand Up @@ -128,13 129,14 @@ const LinkCardImpl: FC<LinkCardProps> = (props) => {
href={fullUrl}
target={source !== 'self' ? '_blank' : '_self'}
ref={ref}
className={clsx(
className={clsxm(
styles['card-grid'],
(loading || isError) && styles['skeleton'],
isError && styles['error'],
'group',

className,
classNames.cardRoot,
)}
style={{
borderColor: cardInfo?.color ? `${cardInfo.color}30` : '',
Expand Down Expand Up @@ -467,6 469,7 @@ const fetchTheMovieDBData: FetchObject = {

classNames: {
image: 'self-start mt-4',
cardRoot: '!w-full',
},
})
setFullUrl(json.homepage)
Expand Down
5 changes: 3 additions & 2 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 189,11 @@ const twConfig: Config = {
'group-hover:opacity-100',
'transition-opacity',
'group-hover:animation-blink',

'!w-full',
'w-full',
],
theme: {
// colors: createVariableColors(twColors),

extend: {
fontFamily: {
sans: 'var(--font-sans),system-ui,-apple-system,PingFang SC,"Microsoft YaHei",Segoe UI,Roboto,Helvetica,noto sans sc,hiragino sans gb,"sans-serif",Apple Color Emoji,Segoe UI Emoji,Not Color Emoji',
Expand Down

1 comment on commit 5934fc3

@vercel
Copy link

@vercel vercel bot commented on 5934fc3 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
shiro-innei.vercel.app
innei.in

Please sign in to comment.