Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com

Animate the api request panel #31

Mergedfukomerged 2 commits intomain fromrefs/pull/31/headmerged by fuko View on GitHub

Showing 4 changed files with 77 additions and 39 deletions (loading 1).

x
0 of 4 viewed, 4 left
75 additions and 37 deletionssrc/components/ApiRequestsPanel.tsxModified
View file
@@ -1,16 +1,19 @@
-import { useLiveQuery } from "@tanstack/react-db";
+import { eq, useLiveQuery } from "@tanstack/react-db";
import {
ChevronDownIcon,
ChevronRightIcon,
LoaderIcon,
Trash2Icon,
} from "lucide-react";
+import { motion } from "motion/react";
import { useState } from "react";
import {
type ApiRequest,
apiRequestsCollection,
} from "@/collections/apiRequests";
+import { userPreferencesCollection } from "@/collections/UserPreferences";
import { cn } from "@/lib/utils";
+import { USER_PLACEHOLDER } from "@/utils/USER_PLACEHOLDER_CONSTANT";
import { Badge } from "./ui/badge";
import { Button } from "./ui/button";
import {
@@ -20,6 +23,9 @@
} from "./ui/collapsible";
import { ScrollArea } from "./ui/scroll-area";
​
+const API_PANEL_WIDTH = "24rem";