mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
Make review detail scrollable on mobile and ensure F+ is enabled (#13119)
This commit is contained in:
parent
29e86d4eeb
commit
c268a126dc
@ -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);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user