fix: order of tailwind classes
This commit is contained in:
1 parent
5528a84ee7
commit
3b03df3ff5
33 files changed
+135
-1250
No files matched your search
@@ -15,13 +15,13 @@ const Actions = ({ onClose, show }: Props) => (
|
||||
<>
|
||||
<ToggleTrailer showType={show.type} showId={show.id}>
|
||||
{({ onPlay, disabled }) => (
|
||||
<Button className='h-8 flex-grow w-[50%]' onClick={onPlay} disabled={disabled}>
|
||||
<Button className='h-8 w-1/2 grow' onClick={onPlay} disabled={disabled}>
|
||||
Trailer
|
||||
</Button>
|
||||
)}
|
||||
</ToggleTrailer>
|
||||
<Button
|
||||
className='h-8 flex-grow w-[50%]'
|
||||
className='h-8 w-1/2 grow'
|
||||
onClick={() =>
|
||||
showTorrentsModal({
|
||||
showId: show.id,
|
||||
@@ -35,11 +35,11 @@ const Actions = ({ onClose, show }: Props) => (
|
||||
Torrents
|
||||
</Button>
|
||||
<Link
|
||||
className='flex w-[50%]'
|
||||
className='flex w-1/2'
|
||||
href={`/similar?id=${show.id}&title=${encodeURIComponent(show.title)}&type=${show.type}`}
|
||||
onClick={onClose}
|
||||
>
|
||||
<Button className='h-8 flex-grow'>Similar</Button>
|
||||
<Button className='h-8 grow'>Similar</Button>
|
||||
</Link>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -25,13 +25,13 @@ const Preview: FC<Props> = ({ show, className, onClose, children, card }) => {
|
||||
return (
|
||||
<div className={cn('flex flex-col md:flex-row gap-2 rounded-xl', { 'p-2': Boolean(onClose) }, className)}>
|
||||
{card || <Card className='mx-auto' show={show} />}
|
||||
<div className='flex flex-col grow'>
|
||||
{children && <div className='flex hover-none:hidden w-full max-sm:mb-0 mb-2 gap-2'>{children}</div>}
|
||||
<div className='flex grow flex-col'>
|
||||
{children && <div className='mb-2 flex w-full gap-2 hover-none:hidden max-sm:mb-0'>{children}</div>}
|
||||
<div className='flex w-full gap-2'>
|
||||
<Actions show={show} onClose={onClose} />
|
||||
</div>
|
||||
<Separator className='my-2' />
|
||||
<p key={show.id} className='leading-7 mb-3'>
|
||||
<p key={show.id} className='mb-3 leading-7'>
|
||||
{show.overview}
|
||||
</p>
|
||||
<div className='mt-auto grid grid-cols-1 rounded-lg'>
|
||||
|
||||
Reference in new issue
Block a user