fix: borders
This commit is contained in:
1 parent
38f0ca26da
commit
b70933b704
8 files changed
+31
-31
No files matched your search
+1
-1
@@ -71,7 +71,7 @@ export const usersShows = async ({
|
|||||||
}): Promise<Pagination<Show>> => {
|
}): Promise<Pagination<Show>> => {
|
||||||
return http
|
return http
|
||||||
.get<TMDBPagination<Movie>>(`/account/null/${list}/${showType === 'tv' ? 'tv' : 'movies'}`, {
|
.get<TMDBPagination<Movie>>(`/account/null/${list}/${showType === 'tv' ? 'tv' : 'movies'}`, {
|
||||||
params: { page, session_id: cookies().get('session')?.value },
|
params: { page, sort_by: 'created_at.desc', session_id: cookies().get('session')?.value },
|
||||||
preventCache: true
|
preventCache: true
|
||||||
})
|
})
|
||||||
.then((response) => mapMoviesSeriesResponseToShows(response, showType));
|
.then((response) => mapMoviesSeriesResponseToShows(response, showType));
|
||||||
|
|||||||
@@ -18,11 +18,7 @@ const Poster: FC<Props> = ({ show, onClick, className, rounded, containerProps }
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
{...(containerProps || {})}
|
{...(containerProps || {})}
|
||||||
className={cn(
|
className={cn('card-aspect-ratio relative bg-black overflow-hidden rounded-lg text-lg', className, rounded)}
|
||||||
'card-aspect-ratio relative bg-card text-card-foreground overflow-hidden rounded-lg 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-lg object-cover', rounded)} src={show.poster} alt={show.title} />
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const showPlayer = create(({ onResolve, magnet, backdrop, title }: Props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal className='overflow-hidden border-none bg-black p-0' onClose={onResolve}>
|
<Modal className='max-w-[932px] overflow-hidden border-none bg-black p-0' onClose={onResolve}>
|
||||||
<div className='relative w-full overflow-hidden pt-[56.25%]'>
|
<div className='relative w-full overflow-hidden pt-[56.25%]'>
|
||||||
<div className='absolute left-0 top-0 size-full'>
|
<div className='absolute left-0 top-0 size-full'>
|
||||||
<Player subtitles={subtitles} videos={videos} onReady={() => setIsReady(true)} />
|
<Player subtitles={subtitles} videos={videos} onReady={() => setIsReady(true)} />
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ const showTorrentsModal = create(({ title, year, imdbID, backdrop, onResolve }:
|
|||||||
}, [providerKey, yts.isFetched, tpb.isFetched]);
|
}, [providerKey, yts.isFetched, tpb.isFetched]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal className='rounded-xl p-0 pb-1' onClose={onResolve}>
|
<Modal className='rounded-xl p-0' onClose={onResolve}>
|
||||||
<div className='grid grid-cols-[1fr_auto] items-center gap-3 p-2'>
|
<div className='grid grid-cols-[1fr_auto] items-center gap-3 p-2'>
|
||||||
<span className='truncate text-base'>{title}</span>
|
<span className='truncate text-base'>{title}</span>
|
||||||
<Button className='h-6 p-2' variant={withYear ? 'default' : 'ghost'} onClick={() => setWithYear((w) => !w)}>
|
<Button className='h-6 p-2' variant={withYear ? 'default' : 'ghost'} onClick={() => setWithYear((w) => !w)}>
|
||||||
@@ -87,7 +87,7 @@ const showTorrentsModal = create(({ title, year, imdbID, backdrop, onResolve }:
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TabsContent key={provider.key} value={provider.key}>
|
<TabsContent className='pb-1' key={provider.key} value={provider.key}>
|
||||||
<TorrentsTable
|
<TorrentsTable
|
||||||
title={title}
|
title={title}
|
||||||
backdrop={backdrop}
|
backdrop={backdrop}
|
||||||
|
|||||||
@@ -30,13 +30,19 @@ const Preview: FC<Props> = ({ show: baseShow, className, onClose, poster }) => {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
'flex flex-col md:flex-row gap-2 rounded-xl',
|
'flex flex-col md:flex-row gap-2 rounded-xl overflow-hidden',
|
||||||
{ 'md:pl-0 md:pt-0 md:pb-0 pl-2 pt-2 pb-2 pr-2 border-none gap-0': isModal },
|
{ 'gap-0 xs:pt-2 md:pt-0 pt-0': isModal },
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{poster || <Poster className='mx-auto' rounded='md:rounded-none md:rounded-l-xl' show={show} />}
|
{poster || (
|
||||||
<div className={cn('flex grow flex-col', { 'md:pb-2 md:pl-2 pb-0 pl-0 pt-2': isModal })}>
|
<Poster
|
||||||
|
className='mx-auto'
|
||||||
|
rounded='rounded-none rounded-t-xl md:rounded-xl sm:rounded-xl md:rounded-none md:rounded-l-xl'
|
||||||
|
show={show}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
<div className={cn('flex grow flex-col bg-background', { 'p-2': isModal })}>
|
||||||
<span className='order-3 mb-4 text-3xl md:order-1 md:line-clamp-2'>{show.title}</span>
|
<span className='order-3 mb-4 text-3xl md:order-1 md:line-clamp-2'>{show.title}</span>
|
||||||
|
|
||||||
<div className='order-3 mb-4 flex w-full flex-wrap gap-5 whitespace-nowrap text-sm md:order-2'>
|
<div className='order-3 mb-4 flex w-full flex-wrap gap-5 whitespace-nowrap text-sm md:order-2'>
|
||||||
@@ -64,7 +70,7 @@ const Preview: FC<Props> = ({ show: baseShow, className, onClose, poster }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const showPreviewModal = create(({ onResolve, onClose, show }: Props & InstanceProps<void>) => (
|
export const showPreviewModal = create(({ onResolve, onClose, show }: Props & InstanceProps<void>) => (
|
||||||
<Modal className='block max-w-[932px] p-0' onClose={onResolve}>
|
<Modal className='block max-w-[932px] bg-background p-0 md:bg-black' onClose={onResolve}>
|
||||||
<Preview
|
<Preview
|
||||||
show={show}
|
show={show}
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ const DialogContent = React.forwardRef<
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<DialogPortal>
|
<DialogPortal>
|
||||||
<div className='fixed inset-0 z-50 size-full bg-black/40 will-change-[opacity]' ref={wrapperRef}>
|
<div className='fixed inset-0 z-50 size-full bg-black/80' data-overlay ref={wrapperRef}>
|
||||||
<DialogOverlay
|
<DialogOverlay
|
||||||
ref={(element) => {
|
ref={(element) => {
|
||||||
if (!element) return;
|
if (!element) return;
|
||||||
|
|||||||
+14
-9
@@ -81,6 +81,7 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
outline-color: transparent;
|
outline-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-moz-selection {
|
::-moz-selection {
|
||||||
color: hsl(var(--secondary));
|
color: hsl(var(--secondary));
|
||||||
background: hsl(var(--secondary-foreground));
|
background: hsl(var(--secondary-foreground));
|
||||||
@@ -89,9 +90,22 @@
|
|||||||
color: hsl(var(--secondary));
|
color: hsl(var(--secondary));
|
||||||
background: hsl(var(--secondary-foreground));
|
background: hsl(var(--secondary-foreground));
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@apply bg-background text-foreground;
|
@apply bg-background text-foreground;
|
||||||
}
|
}
|
||||||
|
body [data-overlay]:not(:last-of-type) {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
button,
|
||||||
|
input[type='button'],
|
||||||
|
input[type='reset'],
|
||||||
|
input[type='submit'] {
|
||||||
|
-webkit-appearance: button;
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer utilities {
|
@layer utilities {
|
||||||
@@ -124,15 +138,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
button,
|
|
||||||
input[type='button'],
|
|
||||||
input[type='reset'],
|
|
||||||
input[type='submit'] {
|
|
||||||
-webkit-appearance: button;
|
|
||||||
background-color: transparent;
|
|
||||||
background-image: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.plyr {
|
.plyr {
|
||||||
--plyr-menu-background: hsl(var(--card-foreground));
|
--plyr-menu-background: hsl(var(--card-foreground));
|
||||||
--plyr-menu-color: hsl(var(--secondary));
|
--plyr-menu-color: hsl(var(--secondary));
|
||||||
|
|||||||
@@ -70,22 +70,15 @@ module.exports = {
|
|||||||
fadeAsideSlideIn: {
|
fadeAsideSlideIn: {
|
||||||
'0%': { opacity: 0, transform: 'translate3d(-20px, 0, 0)' },
|
'0%': { opacity: 0, transform: 'translate3d(-20px, 0, 0)' },
|
||||||
'100%': { opacity: 1, transform: 'translate3d(0, 0, 0)' }
|
'100%': { opacity: 1, transform: 'translate3d(0, 0, 0)' }
|
||||||
},
|
|
||||||
glow: {
|
|
||||||
'0%': { backgroundPosition: '0 0' },
|
|
||||||
'50%': { backgroundPosition: '100% 0' },
|
|
||||||
'100%': { backgroundPosition: '0 0' }
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
animation: {
|
animation: {
|
||||||
glow: 'glow 20s linear infinite',
|
|
||||||
'accordion-down': 'accordion-down 0.2s ease-out',
|
'accordion-down': 'accordion-down 0.2s ease-out',
|
||||||
'accordion-up': 'accordion-up 0.2s ease-out',
|
'accordion-up': 'accordion-up 0.2s ease-out',
|
||||||
'fade-in-slide-in': 'fadeInSlideIn 0.2s ease-in-out forwards',
|
'fade-in-slide-in': 'fadeInSlideIn 0.2s ease-in-out forwards',
|
||||||
'fade-aside-slide-in': 'fadeAsideSlideIn 0.2s ease-in-out forwards'
|
'fade-aside-slide-in': 'fadeAsideSlideIn 0.2s ease-in-out forwards'
|
||||||
},
|
},
|
||||||
backgroundImage: {
|
backgroundImage: {
|
||||||
glow: 'linear-gradient(45deg,rgba(255, 255, 255, 0.2),rgba(255, 255, 255, 0.2),rgba(255, 255, 255, 0.2),rgba(0, 0, 0, 0.4),rgba(0, 0, 0, 0.4),rgba(255, 255, 255, 0.2),rgba(255, 255, 255, 0.2),rgba(255, 255, 255, 0.2))',
|
|
||||||
vignette:
|
vignette:
|
||||||
'linear-gradient(rgba(0, 0, 0, 0.4) 0%,rgba(0, 0, 0, 0.396) 2.83%,rgba(0, 0, 0, 0.384) 5.67%,rgba(0, 0, 0, 0.37) 8.5%,rgba(0, 0, 0, 0.34) 11.33%,rgba(0, 0, 0, 0.306) 14.17%,rgba(0, 0, 0, 0.267) 17%,rgba(0, 0, 0, 0.224) 19.83%,rgba(0, 0, 0, 0.176) 22.67%,rgba(0, 0, 0, 0.133) 25.5%,rgba(0, 0, 0, 0.094) 28.33%,rgba(0, 0, 0, 0.06) 31.17%,rgba(0, 0, 0, 0.03) 34%,rgba(0, 0, 0, 0.016) 36.83%,rgba(0, 0, 0, 0.004) 39.67%,rgba(0, 0, 0, 0) 42.5%,rgba(0, 0, 0, 0) 57.5%,rgba(0, 0, 0, 0.004) 60.33%,rgba(0, 0, 0, 0.016) 63.17%,rgba(0, 0, 0, 0.03) 66%,rgba(0, 0, 0, 0.06) 68.83%,rgba(0, 0, 0, 0.094) 71.67%,rgba(0, 0, 0, 0.133) 74.5%,rgba(0, 0, 0, 0.176) 77.33%,rgba(0, 0, 0, 0.224) 80.17%,rgba(0, 0, 0, 0.267) 83%,rgba(0, 0, 0, 0.306) 85.83%,rgba(0, 0, 0, 0.34) 88.67%,rgba(0, 0, 0, 0.37) 91.5%,rgba(0, 0, 0, 0.384) 94.33%,rgba(0, 0, 0, 0.396) 97.17%,rgba(0, 0, 0, 0.4) 100%)'
|
'linear-gradient(rgba(0, 0, 0, 0.4) 0%,rgba(0, 0, 0, 0.396) 2.83%,rgba(0, 0, 0, 0.384) 5.67%,rgba(0, 0, 0, 0.37) 8.5%,rgba(0, 0, 0, 0.34) 11.33%,rgba(0, 0, 0, 0.306) 14.17%,rgba(0, 0, 0, 0.267) 17%,rgba(0, 0, 0, 0.224) 19.83%,rgba(0, 0, 0, 0.176) 22.67%,rgba(0, 0, 0, 0.133) 25.5%,rgba(0, 0, 0, 0.094) 28.33%,rgba(0, 0, 0, 0.06) 31.17%,rgba(0, 0, 0, 0.03) 34%,rgba(0, 0, 0, 0.016) 36.83%,rgba(0, 0, 0, 0.004) 39.67%,rgba(0, 0, 0, 0) 42.5%,rgba(0, 0, 0, 0) 57.5%,rgba(0, 0, 0, 0.004) 60.33%,rgba(0, 0, 0, 0.016) 63.17%,rgba(0, 0, 0, 0.03) 66%,rgba(0, 0, 0, 0.06) 68.83%,rgba(0, 0, 0, 0.094) 71.67%,rgba(0, 0, 0, 0.133) 74.5%,rgba(0, 0, 0, 0.176) 77.33%,rgba(0, 0, 0, 0.224) 80.17%,rgba(0, 0, 0, 0.267) 83%,rgba(0, 0, 0, 0.306) 85.83%,rgba(0, 0, 0, 0.34) 88.67%,rgba(0, 0, 0, 0.37) 91.5%,rgba(0, 0, 0, 0.384) 94.33%,rgba(0, 0, 0, 0.396) 97.17%,rgba(0, 0, 0, 0.4) 100%)'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user