mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-16 18:16:44 +03:00
Move explore button
This commit is contained in:
parent
90a5f3a63e
commit
fd7475ac34
@ -293,33 +293,12 @@ export function GroupedClassificationCard({
|
|||||||
onOpenAutoFocus={(e) => e.preventDefault()}
|
onOpenAutoFocus={(e) => e.preventDefault()}
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
{isDesktop && (
|
<Header
|
||||||
<div className="absolute right-10 top-4 flex flex-row justify-between">
|
className={cn(
|
||||||
{event && (
|
"mx-2 flex flex-row items-center gap-4",
|
||||||
<Tooltip>
|
isMobile && "flex-shrink-0",
|
||||||
<TooltipTrigger asChild>
|
)}
|
||||||
<div
|
>
|
||||||
className="cursor-pointer"
|
|
||||||
tabIndex={-1}
|
|
||||||
onClick={() => {
|
|
||||||
navigate(`/explore?event_id=${event.id}`);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<LuSearch className="size-4 text-secondary-foreground" />
|
|
||||||
</div>
|
|
||||||
</TooltipTrigger>
|
|
||||||
<TooltipPortal>
|
|
||||||
<TooltipContent>
|
|
||||||
{t("details.item.button.viewInExplore", {
|
|
||||||
ns: "views/explore",
|
|
||||||
})}
|
|
||||||
</TooltipContent>
|
|
||||||
</TooltipPortal>
|
|
||||||
</Tooltip>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<Header className={cn("mx-2", isMobile && "flex-shrink-0")}>
|
|
||||||
<div>
|
<div>
|
||||||
<ContentTitle
|
<ContentTitle
|
||||||
className={cn(
|
className={cn(
|
||||||
@ -349,6 +328,32 @@ export function GroupedClassificationCard({
|
|||||||
)}
|
)}
|
||||||
</ContentDescription>
|
</ContentDescription>
|
||||||
</div>
|
</div>
|
||||||
|
{isDesktop && (
|
||||||
|
<div className="flex flex-row justify-between">
|
||||||
|
{event && (
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger asChild>
|
||||||
|
<div
|
||||||
|
className="cursor-pointer"
|
||||||
|
tabIndex={-1}
|
||||||
|
onClick={() => {
|
||||||
|
navigate(`/explore?event_id=${event.id}`);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<LuSearch className="size-4 text-secondary-foreground" />
|
||||||
|
</div>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipPortal>
|
||||||
|
<TooltipContent>
|
||||||
|
{t("details.item.button.viewInExplore", {
|
||||||
|
ns: "views/explore",
|
||||||
|
})}
|
||||||
|
</TooltipContent>
|
||||||
|
</TooltipPortal>
|
||||||
|
</Tooltip>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</Header>
|
</Header>
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user