mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Conditionally show no items (#10065)
* Conditionally show no items * Clean up view
This commit is contained in:
parent
3c5ed474af
commit
20578de9d0
@ -91,8 +91,8 @@ export default function DesktopEventView({
|
||||
return false;
|
||||
}
|
||||
|
||||
return contentRef.current.scrollHeight > contentRef.current.clientHeight
|
||||
}, [contentRef.current?.scrollHeight])
|
||||
return contentRef.current.scrollHeight > contentRef.current.clientHeight;
|
||||
}, [contentRef.current?.scrollHeight]);
|
||||
|
||||
// review interaction
|
||||
|
||||
@ -276,10 +276,12 @@ export default function DesktopEventView({
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="absolute w-full h-full flex flex-col justify-center items-center">
|
||||
{reachedEnd && currentItems == null && (
|
||||
<div className="w-full h-full flex flex-col justify-center items-center">
|
||||
<LuFolderCheck className="w-16 h-16" />
|
||||
There are no {severity} items to review
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="w-full mr-4 md:grid md:grid-cols-3 3xl:grid-cols-4 gap-4">
|
||||
{currentItems ? (
|
||||
|
Loading…
Reference in New Issue
Block a user