Skip to content

Commit

Permalink
fix: correctly send auto-approval notifictions for series
Browse files Browse the repository at this point in the history
also adjusted see more card slightly
  • Loading branch information
sct committed Mar 12, 2021
1 parent f7d2723 commit 8634081
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion server/entity/MediaRequest.ts
Expand Up @@ -188,7 +188,9 @@ export class MediaRequest {
const tv = await tmdb.getTvShow({ tvId: this.media.tmdbId });
notificationManager.sendNotification(
this.status === MediaRequestStatus.APPROVED
? Notification.MEDIA_APPROVED
? autoApproved
? Notification.MEDIA_AUTO_APPROVED
: Notification.MEDIA_APPROVED
: Notification.MEDIA_DECLINED,
{
subject: tv.name,
Expand Down
6 changes: 4 additions & 2 deletions src/components/MediaSlider/ShowMoreCard/index.tsx
Expand Up @@ -32,8 +32,10 @@ const ShowMoreCard: React.FC<ShowMoreCardProps> = ({ url, posters }) => {
>
<div
className={`relative w-36 sm:w-36 md:w-44
rounded-xl text-white shadow-lg overflow-hidden transition ease-in-out duration-150 cursor-pointer transform-gpu ${
isHovered ? 'bg-gray-500 scale-105' : 'bg-gray-700 scale-100'
rounded-xl text-white shadow-lg overflow-hidden transition ease-in-out duration-150 cursor-pointer transform-gpu ring-1 ${
isHovered
? 'bg-gray-600 ring-gray-500 scale-105'
: 'bg-gray-800 ring-gray-700 scale-100'
}`}
>
<div style={{ paddingBottom: '150%' }}>
Expand Down

0 comments on commit 8634081

Please sign in to comment.