Make review detail scrollable on mobile and ensure F+ is enabled (#13119)

This commit is contained in:
Nicolas Mowen 2024-08-16 08:38:41 -06:00
parent 29e86d4eeb
commit c268a126dc

View File

@ -77,7 +77,7 @@ export default function ReviewDetailDialog({
<Content <Content
className={ className={
isDesktop ? "sm:max-w-xl" : "max-h-[75dvh] overflow-hidden p-2 pb-4" isDesktop ? "sm:max-w-xl" : "max-h-[75dvh] overflow-x-hidden p-2 pb-4"
} }
> >
{review && ( {review && (
@ -147,6 +147,7 @@ export default function ReviewDetailDialog({
"aspect-video select-none rounded-lg object-contain transition-opacity", "aspect-video select-none rounded-lg object-contain transition-opacity",
event.has_snapshot && event.has_snapshot &&
event.plus_id == undefined && event.plus_id == undefined &&
config?.plus.enabled &&
"cursor-pointer", "cursor-pointer",
)} )}
style={ style={
@ -164,7 +165,11 @@ export default function ReviewDetailDialog({
: `${apiHost}api/events/${event.id}/thumbnail.jpg` : `${apiHost}api/events/${event.id}/thumbnail.jpg`
} }
onClick={() => { onClick={() => {
if (event.has_snapshot && event.plus_id == undefined) { if (
event.has_snapshot &&
event.plus_id == undefined &&
config?.plus.enabled
) {
setUpload(event); setUpload(event);
} }
}} }}