Skip to content

Commit

Permalink
small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Oct 15, 2024
1 parent 90c6000 commit 934a0e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions web/src/components/card/SearchThumbnailFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import {
Expand All @@ -22,20 +24,15 @@ import {
AlertDialogHeader,
AlertDialogTitle,
} from "../ui/alert-dialog";
import {
LuCamera,
LuDownload,
LuMoreVertical,
LuSearch,
LuTrash2,
} from "react-icons/lu";
import { LuCamera, LuDownload, LuMoreVertical, LuTrash2 } from "react-icons/lu";
import FrigatePlusIcon from "@/components/icons/FrigatePlusIcon";
import { FrigatePlusDialog } from "../overlay/dialog/FrigatePlusDialog";
import { Event } from "@/types/event";
import { FaArrowsRotate } from "react-icons/fa6";
import { baseUrl } from "@/api/baseUrl";
import axios from "axios";
import { toast } from "sonner";
import { MdImageSearch } from "react-icons/md";

type SearchThumbnailProps = {
searchResult: SearchResult;
Expand Down Expand Up @@ -125,7 +122,7 @@ export default function SearchThumbnailFooter({
)}
{formattedDate}
</div>
<div className="flex flex-row items-center justify-end gap-4">
<div className="flex flex-row items-center justify-end gap-8 md:gap-4">
{config?.plus?.enabled &&
searchResult.has_snapshot &&
searchResult.end_time && (
Expand All @@ -143,7 +140,7 @@ export default function SearchThumbnailFooter({
{config?.semantic_search?.enabled && (
<Tooltip>
<TooltipTrigger>
<LuSearch
<MdImageSearch
className="size-5 cursor-pointer text-primary"
onClick={findSimilar}
/>
Expand All @@ -157,6 +154,10 @@ export default function SearchThumbnailFooter({
<LuMoreVertical className="size-5 cursor-pointer text-primary" />
</DropdownMenuTrigger>
<DropdownMenuContent align={"end"}>
<DropdownMenuLabel className="mt-0.5">
Tracked Object Actions
</DropdownMenuLabel>
<DropdownMenuSeparator className="mt-1" />
{searchResult.has_clip && (
<DropdownMenuItem>
<a
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/input/InputWithTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ export default function InputWithTags({
onFocus={handleInputFocus}
onBlur={handleInputBlur}
onKeyDown={handleInputKeyDown}
className="text-md h-9 pr-24"
className="text-md h-9 pr-32"
placeholder="Search..."
/>
<div className="absolute right-3 top-0 flex h-full flex-row items-center justify-center gap-5">
Expand Down

0 comments on commit 934a0e4

Please sign in to comment.