Implement infinite scrolling for frigate+ view (#11273)

* Implement infinite scrolling for frigate+ view

* Also fixes safari preview glitch

* Show sub label name in hover
This commit is contained in:
Nicolas Mowen
2024-05-06 17:00:21 -06:00
committed by GitHub
parent e5e18a5026
commit fc0f6d6095
3 changed files with 127 additions and 18 deletions

View File

@@ -184,7 +184,13 @@ export default function LivePlayer({
</TooltipTrigger>
</div>
<TooltipContent className="capitalize">
{[...new Set([...(objects || []).map(({ label }) => label)])]
{[
...new Set([
...(objects || []).map(({ label, sub_label }) =>
label.endsWith("verified") ? sub_label : label,
),
]),
]
.filter(
(label) =>
label !== undefined && !label.includes("-verified"),