fix: border radius
This commit is contained in:
1 parent
47c0b5eb47
commit
9702f027ed
9 files changed
+14
-20
No files matched your search
@@ -7,7 +7,7 @@ const Container = () => (
|
|||||||
<Random />
|
<Random />
|
||||||
<div className='h-2 w-full' />
|
<div className='h-2 w-full' />
|
||||||
</div>
|
</div>
|
||||||
<div className='hidden w-full rounded-lg xs:block'>
|
<div className='hidden w-full rounded-xl xs:block'>
|
||||||
<Trending />
|
<Trending />
|
||||||
<div className='h-2 w-full' />
|
<div className='h-2 w-full' />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const showTrailerModal = create(({ trailerKey, onResolve }: { trailerKey?: strin
|
|||||||
<iframe
|
<iframe
|
||||||
allowFullScreen
|
allowFullScreen
|
||||||
allow='autoplay'
|
allow='autoplay'
|
||||||
className='rounded-lg border-none'
|
className='rounded-xl border-none'
|
||||||
width='100%'
|
width='100%'
|
||||||
height='100%'
|
height='100%'
|
||||||
src={`//www.youtube.com/embed/${trailerKey}?autoplay=1`}
|
src={`//www.youtube.com/embed/${trailerKey}?autoplay=1`}
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ const Poster: FC<Props> = ({ show, onClick, className, rounded, containerProps }
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
{...(containerProps || {})}
|
{...(containerProps || {})}
|
||||||
className={cn('card-aspect-ratio relative bg-black overflow-hidden rounded-lg text-lg', className, rounded)}
|
className={cn('card-aspect-ratio relative bg-black overflow-hidden rounded-xl text-lg', className, rounded)}
|
||||||
>
|
>
|
||||||
<div className='flex size-full'>
|
<div className='flex size-full'>
|
||||||
<img className={cn('size-full rounded-lg object-cover', rounded)} src={show.poster} alt={show.title} />
|
<img className={cn('size-full rounded-xl object-cover', rounded)} src={show.poster} alt={show.title} />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|||||||
@@ -37,13 +37,7 @@ const Credits: FC<Props> = ({ showId, showType = 'movie', onPersonClick }) => {
|
|||||||
onClick={() => onPersonClick?.(actor.id.toString())}
|
onClick={() => onPersonClick?.(actor.id.toString())}
|
||||||
>
|
>
|
||||||
<div className='overflow-hidden rounded-lg'>
|
<div className='overflow-hidden rounded-lg'>
|
||||||
{actor.profile_path ? (
|
|
||||||
<img height={180} width={120} src={actor.photoUrl} alt={actor.name} />
|
<img height={180} width={120} src={actor.photoUrl} alt={actor.name} />
|
||||||
) : (
|
|
||||||
<div className='flex h-[180px] w-[120px] items-center justify-center rounded-lg'>
|
|
||||||
<User2 size={120} strokeWidth={1} />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
<div className='absolute left-0 top-0 flex size-full flex-col justify-between rounded-md bg-vignette p-2 py-1 text-sm text-white'>
|
<div className='absolute left-0 top-0 flex size-full flex-col justify-between rounded-md bg-vignette p-2 py-1 text-sm text-white'>
|
||||||
<p className=' truncate'>{actor.name}</p>
|
<p className=' truncate'>{actor.name}</p>
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ const TorrentsTable: FC<Props> = ({ title, torrents, backdrop, sort, sortable, p
|
|||||||
<div className='no-scrollbar flex max-w-full justify-end gap-2 overflow-auto'>
|
<div className='no-scrollbar flex max-w-full justify-end gap-2 overflow-auto'>
|
||||||
{supportedForStream && (
|
{supportedForStream && (
|
||||||
<div
|
<div
|
||||||
className='flex size-8 cursor-pointer items-center justify-center rounded-lg border'
|
className='flex size-8 cursor-pointer items-center justify-center rounded-xl border'
|
||||||
onClick={() => showPlayer({ magnet: torrent.magnet, backdrop, title })}
|
onClick={() => showPlayer({ magnet: torrent.magnet, backdrop, title })}
|
||||||
title='Play show'
|
title='Play show'
|
||||||
>
|
>
|
||||||
@@ -95,20 +95,20 @@ const TorrentsTable: FC<Props> = ({ title, torrents, backdrop, sort, sortable, p
|
|||||||
href={`${process.env.NEXT_PUBLIC_TORRENT_PROXY}/stream?m3u&link=${encodeURIComponent(
|
href={`${process.env.NEXT_PUBLIC_TORRENT_PROXY}/stream?m3u&link=${encodeURIComponent(
|
||||||
torrent.magnet
|
torrent.magnet
|
||||||
)}`}
|
)}`}
|
||||||
className='flex size-8 items-center justify-center rounded-lg border'
|
className='flex size-8 items-center justify-center rounded-xl border'
|
||||||
title='Open using you native video player'
|
title='Open using you native video player'
|
||||||
>
|
>
|
||||||
<ListVideo size={20} />
|
<ListVideo size={20} />
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href={torrent.magnet}
|
href={torrent.magnet}
|
||||||
className='flex size-8 items-center justify-center rounded-lg border'
|
className='flex size-8 items-center justify-center rounded-xl border'
|
||||||
title='Download magnet'
|
title='Download magnet'
|
||||||
>
|
>
|
||||||
<Magnet size={20} />
|
<Magnet size={20} />
|
||||||
</a>
|
</a>
|
||||||
<div
|
<div
|
||||||
className='flex size-8 cursor-pointer items-center justify-center rounded-lg border'
|
className='flex size-8 cursor-pointer items-center justify-center rounded-xl border'
|
||||||
onClick={() => navigator.clipboard.writeText(torrent.magnet)}
|
onClick={() => navigator.clipboard.writeText(torrent.magnet)}
|
||||||
title='Copy magnet into clipboard'
|
title='Copy magnet into clipboard'
|
||||||
>
|
>
|
||||||
@@ -117,7 +117,7 @@ const TorrentsTable: FC<Props> = ({ title, torrents, backdrop, sort, sortable, p
|
|||||||
{supportedForCast && (
|
{supportedForCast && (
|
||||||
<div
|
<div
|
||||||
onClick={() => cast(torrent.magnet!)}
|
onClick={() => cast(torrent.magnet!)}
|
||||||
className='flex size-8 cursor-pointer items-center justify-center rounded-lg border'
|
className='flex size-8 cursor-pointer items-center justify-center rounded-xl border'
|
||||||
>
|
>
|
||||||
<Cast size={20} />
|
<Cast size={20} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ const components: VirtuosoProps<Show, (index: number) => void>['components'] = {
|
|||||||
<div
|
<div
|
||||||
{...props}
|
{...props}
|
||||||
ref={handleRef(ref, setRef)}
|
ref={handleRef(ref, setRef)}
|
||||||
className={cn('no-scrollbar h-full overflow-hidden rounded-lg', {
|
className={cn('no-scrollbar h-full overflow-hidden rounded-xl', {
|
||||||
'snap-x snap-mandatory': !isArrowHovered
|
'snap-x snap-mandatory ': !isArrowHovered
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const Gallery: FC<Props> = ({ shows }) => (
|
|||||||
{(setRef) => (
|
{(setRef) => (
|
||||||
<ul
|
<ul
|
||||||
ref={setRef}
|
ref={setRef}
|
||||||
className='no-scrollbar flex animate-fade-aside-slide-in snap-x snap-mandatory gap-2 overflow-auto rounded-lg opacity-0'
|
className='no-scrollbar flex animate-fade-aside-slide-in snap-x snap-mandatory gap-2 overflow-auto rounded-xl opacity-0'
|
||||||
>
|
>
|
||||||
{shows.map((show) => (
|
{shows.map((show) => (
|
||||||
<li key={show.id} className='snap-start'>
|
<li key={show.id} className='snap-start'>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const UsersList: FC<Props> = ({ list, label }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Tabs defaultValue='movie' className='flex w-full flex-col items-center'>
|
<Tabs defaultValue='movie' className='flex w-full flex-col items-center'>
|
||||||
<TabsList className='grid w-[300px] grid-cols-2'>
|
<TabsList className='grid w-full grid-cols-2 sm:w-[300px]'>
|
||||||
{tabs.map(({ title, key }) => (
|
{tabs.map(({ title, key }) => (
|
||||||
<TabsTrigger key={key} value={key}>
|
<TabsTrigger key={key} value={key}>
|
||||||
{title}
|
{title}
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ const DialogContent = React.forwardRef<
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<DialogPortal>
|
<DialogPortal>
|
||||||
<div className='fixed inset-0 z-50 size-full bg-black/80' data-overlay ref={wrapperRef}>
|
<div className='fixed inset-0 z-50 size-full bg-black/65' data-overlay ref={wrapperRef}>
|
||||||
<DialogOverlay
|
<DialogOverlay
|
||||||
ref={(element) => {
|
ref={(element) => {
|
||||||
if (!element) return;
|
if (!element) return;
|
||||||
|
|||||||
Reference in new issue
Block a user