|
1 | 1 | import { useCallback, useEffect, useRef, useState } from "react"; |
2 | 2 | import { Allotment } from "allotment"; |
3 | 3 | import "allotment/dist/style.css"; |
4 | | -import { ChevronLeftIcon, ChevronRightIcon, DrawingPinFilledIcon, ChevronDownIcon, FileIcon, DesktopIcon, RocketIcon, CodeIcon, GitHubLogoIcon, MixerHorizontalIcon } from "@radix-ui/react-icons"; |
| 4 | +import { ChevronLeftIcon, ChevronRightIcon, DrawingPinFilledIcon, ChevronDownIcon, FileIcon, DesktopIcon, MixerHorizontalIcon } from "@radix-ui/react-icons"; |
5 | 5 | import { CornerDownLeft, FolderOpenIcon } from "lucide-react"; |
6 | 6 | import { invoke } from "@tauri-apps/api/core"; |
7 | 7 | import { open as openDialog } from "@tauri-apps/plugin-dialog"; |
@@ -205,14 +205,6 @@ export function PanelGrid({ |
205 | 205 | const [slashFilter, setSlashFilter] = useState(""); |
206 | 206 | const [slashSelectedIndex, setSlashSelectedIndex] = useState(0); |
207 | 207 |
|
208 | | - // Track viewport height - hide quick actions when short |
209 | | - const [isShortViewport, setIsShortViewport] = useState(() => window.innerHeight < 640); |
210 | | - useEffect(() => { |
211 | | - const handleResize = () => setIsShortViewport(window.innerHeight < 640); |
212 | | - window.addEventListener("resize", handleResize); |
213 | | - return () => window.removeEventListener("resize", handleResize); |
214 | | - }, []); |
215 | | - |
216 | 208 | // Fetch commands for autocomplete |
217 | 209 | const { data: localCommands = [] } = useInvokeQuery<LocalCommand[]>( |
218 | 210 | ["commands"], |
@@ -382,13 +374,6 @@ export function PanelGrid({ |
382 | 374 | } |
383 | 375 | }; |
384 | 376 |
|
385 | | - // Quick action cards data |
386 | | - const quickActions = [ |
387 | | - { icon: RocketIcon, title: "Start dev server", code: "pnpm dev" }, |
388 | | - { icon: GitHubLogoIcon, title: "Check git status", code: "git status" }, |
389 | | - { icon: CodeIcon, title: "Run tests", code: "pnpm test" }, |
390 | | - ]; |
391 | | - |
392 | 377 | // Common dropdown button style |
393 | 378 | const dropdownButtonClass = "inline-flex items-center justify-between gap-3 px-4 py-2.5 text-sm border border-border bg-card hover:bg-card-alt rounded-xl transition-colors"; |
394 | 379 |
|
|
0 commit comments