mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-24 02:39:18 -05:00
Compare commits
3 Commits
85cf420438
...
preview-av
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ac21bb814 | ||
|
|
3f8ebc75d5 | ||
|
|
065d3002e0 |
@@ -1,5 +1,6 @@
|
|||||||
import Badge from '@app/components/Common/Badge';
|
import Badge from '@app/components/Common/Badge';
|
||||||
import Button from '@app/components/Common/Button';
|
import Button from '@app/components/Common/Button';
|
||||||
|
import CachedImage from '@app/components/Common/CachedImage';
|
||||||
import Tooltip from '@app/components/Common/Tooltip';
|
import Tooltip from '@app/components/Common/Tooltip';
|
||||||
import RequestModal from '@app/components/RequestModal';
|
import RequestModal from '@app/components/RequestModal';
|
||||||
import useRequestOverride from '@app/hooks/useRequestOverride';
|
import useRequestOverride from '@app/hooks/useRequestOverride';
|
||||||
@@ -95,36 +96,58 @@ const RequestBlock = ({ request, onUpdate }: RequestBlockProps) => {
|
|||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<div className="mr-6 min-w-0 flex-1 flex-col items-center text-sm leading-5">
|
<div className="mr-6 min-w-0 flex-1 flex-col items-center text-sm leading-5">
|
||||||
<div className="white mb-1 flex flex-nowrap">
|
<div className="white mb-1 flex flex-nowrap">
|
||||||
<Tooltip content={intl.formatMessage(messages.requestedby)}>
|
<span className="flex w-40 items-center truncate md:w-auto">
|
||||||
<UserIcon className="mr-1.5 h-5 w-5 min-w-0 flex-shrink-0" />
|
<Tooltip content={intl.formatMessage(messages.requestedby)}>
|
||||||
</Tooltip>
|
<UserIcon className="mr-1.5 h-5 w-5 min-w-0 flex-shrink-0" />
|
||||||
<span className="w-40 truncate md:w-auto">
|
</Tooltip>
|
||||||
<Link
|
<Link
|
||||||
href={
|
href={
|
||||||
request.requestedBy.id === user?.id
|
request.requestedBy.id === user?.id
|
||||||
? '/profile'
|
? '/profile'
|
||||||
: `/users/${request.requestedBy.id}`
|
: `/users/${request.requestedBy.id}`
|
||||||
}
|
}
|
||||||
className="font-semibold text-gray-100 transition duration-300 hover:text-white hover:underline"
|
className="flex items-center font-semibold text-gray-100 transition duration-300 hover:text-white hover:underline"
|
||||||
>
|
>
|
||||||
|
<span className="avatar-sm">
|
||||||
|
<CachedImage
|
||||||
|
type="avatar"
|
||||||
|
src={request.requestedBy.avatar}
|
||||||
|
alt=""
|
||||||
|
className="avatar-sm object-cover"
|
||||||
|
width={20}
|
||||||
|
height={20}
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
{request.requestedBy.displayName}
|
{request.requestedBy.displayName}
|
||||||
</Link>
|
</Link>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{request.modifiedBy && (
|
{request.modifiedBy && (
|
||||||
<div className="flex flex-nowrap">
|
<div className="flex flex-nowrap">
|
||||||
<Tooltip content={intl.formatMessage(messages.lastmodifiedby)}>
|
<span className="flex w-40 items-center truncate md:w-auto">
|
||||||
<EyeIcon className="mr-1.5 h-5 w-5 flex-shrink-0" />
|
<Tooltip
|
||||||
</Tooltip>
|
content={intl.formatMessage(messages.lastmodifiedby)}
|
||||||
<span className="w-40 truncate md:w-auto">
|
>
|
||||||
|
<EyeIcon className="mr-1.5 h-5 w-5 flex-shrink-0" />
|
||||||
|
</Tooltip>
|
||||||
<Link
|
<Link
|
||||||
href={
|
href={
|
||||||
request.modifiedBy.id === user?.id
|
request.modifiedBy.id === user?.id
|
||||||
? '/profile'
|
? '/profile'
|
||||||
: `/users/${request.modifiedBy.id}`
|
: `/users/${request.modifiedBy.id}`
|
||||||
}
|
}
|
||||||
className="font-semibold text-gray-100 transition duration-300 hover:text-white hover:underline"
|
className="flex items-center font-semibold text-gray-100 transition duration-300 hover:text-white hover:underline"
|
||||||
>
|
>
|
||||||
|
<span className="avatar-sm">
|
||||||
|
<CachedImage
|
||||||
|
type="avatar"
|
||||||
|
src={request.modifiedBy.avatar}
|
||||||
|
alt=""
|
||||||
|
className="avatar-sm object-cover"
|
||||||
|
width={20}
|
||||||
|
height={20}
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
{request.modifiedBy.displayName}
|
{request.modifiedBy.displayName}
|
||||||
</Link>
|
</Link>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user