mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 20:28:40 -05:00
feat: upcoming/trending list views and larger title cards
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
import React from 'react';
|
||||
|
||||
const Placeholder: React.FC = () => {
|
||||
interface PlaceholderProps {
|
||||
canExpand?: boolean;
|
||||
}
|
||||
|
||||
const Placeholder: React.FC<PlaceholderProps> = ({ canExpand = false }) => {
|
||||
return (
|
||||
<div className="relative animate-pulse rounded-lg bg-cool-gray-700 w-36 sm:w-36 md:w-44 ">
|
||||
<div
|
||||
className={`relative animate-pulse rounded-lg bg-cool-gray-700 ${
|
||||
canExpand ? 'w-full' : 'w-36 sm:w-36 md:w-44'
|
||||
}`}
|
||||
>
|
||||
<div className="w-full" style={{ paddingBottom: '150%' }} />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -19,7 +19,7 @@ interface TitleCardProps {
|
||||
userScore: number;
|
||||
mediaType: MediaType;
|
||||
status?: MediaStatus;
|
||||
requestId?: number;
|
||||
canExpand?: boolean;
|
||||
}
|
||||
|
||||
const TitleCard: React.FC<TitleCardProps> = ({
|
||||
@@ -30,7 +30,7 @@ const TitleCard: React.FC<TitleCardProps> = ({
|
||||
title,
|
||||
status,
|
||||
mediaType,
|
||||
requestId,
|
||||
canExpand = false,
|
||||
}) => {
|
||||
const [isUpdating, setIsUpdating] = useState(false);
|
||||
const [currentStatus, setCurrentStatus] = useState(status);
|
||||
@@ -55,7 +55,7 @@ const TitleCard: React.FC<TitleCardProps> = ({
|
||||
const closeModal = useCallback(() => setShowRequestModal(false), []);
|
||||
|
||||
return (
|
||||
<div className="w-36 sm:w-36 md:w-44">
|
||||
<div className={canExpand ? 'w-full' : 'w-36 sm:w-36 md:w-44'}>
|
||||
<RequestModal
|
||||
tmdbId={id}
|
||||
show={showRequestModal}
|
||||
|
||||
Reference in New Issue
Block a user