mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-04 13:47:37 +02:00
Ensure train is option on mobile
This commit is contained in:
parent
bbf49ec214
commit
5f8ecd7531
@ -353,6 +353,15 @@ function LibrarySelector({
|
|||||||
<Button className="capitalize">{pageToggle}</Button>
|
<Button className="capitalize">{pageToggle}</Button>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent>
|
<DropdownMenuContent>
|
||||||
|
{trainImages.length > 0 && (
|
||||||
|
<DropdownMenuItem
|
||||||
|
className={`flex scroll-mx-10 items-center justify-between gap-2 ${pageToggle == "train" ? "" : "*:text-muted-foreground"}`}
|
||||||
|
aria-label={t("train.aria")}
|
||||||
|
onClick={() => setPageToggle("train")}
|
||||||
|
>
|
||||||
|
<div>{t("train.title")}</div>
|
||||||
|
</DropdownMenuItem>
|
||||||
|
)}
|
||||||
{Object.values(faces).map((face) => (
|
{Object.values(faces).map((face) => (
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
className="capitalize"
|
className="capitalize"
|
||||||
|
Loading…
Reference in New Issue
Block a user