File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed
Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 22< html lang ="en ">
33 < head >
44 < meta charset ="UTF-8 " />
5- < link rel ="icon " type ="image/svg+xml " href ="/vite .svg " />
5+ < link rel ="icon " type ="image/svg+xml " href ="/cpu .svg " />
66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7- < title > mips_visualizer </ title >
7+ < title > MIPS Visualizer </ title >
88 </ head >
99 < body >
1010 < div id ="root "> </ div >
Original file line number Diff line number Diff line change 11import {
22 BugPlayIcon ,
3+ FileQuestionMark ,
34 PlayIcon ,
45 PlusIcon ,
56 SquareIcon ,
@@ -28,6 +29,7 @@ import { neg } from "@/logic/nodeTypes/neg"
2829import type { NodeType } from "@/logic/simulation"
2930import { PopoverClose } from "@radix-ui/react-popover"
3031import { not } from "@/logic/nodeTypes/not"
32+ import { Dialog , DialogContent , DialogTrigger } from "./ui/dialog"
3133
3234type NodeInfo = {
3335 name : string
@@ -271,6 +273,28 @@ function DebugUI() {
271273 </ Tooltip >
272274 </ ButtonGroup >
273275 </ TooltipProvider >
276+
277+ < ButtonGroup >
278+ < Dialog >
279+ < DialogTrigger >
280+ < Tooltip delayDuration = { 500 } >
281+ < TooltipTrigger asChild >
282+ < Button
283+ variant = { "outline" }
284+ className = "hover:text-gray-600 cursor-pointer"
285+ >
286+ < FileQuestionMark />
287+ </ Button >
288+ </ TooltipTrigger >
289+ < TooltipContent >
290+ { /* TODO: Add Video Here */ }
291+ < p > Help</ p >
292+ </ TooltipContent >
293+ </ Tooltip >
294+ </ DialogTrigger >
295+ < DialogContent > Help</ DialogContent >
296+ </ Dialog >
297+ </ ButtonGroup >
274298 </ ButtonGroup >
275299 < div className = "absolute top-10 text-muted-foreground text-nowrap pointer-events-none" >
276300 { placingNode
You can’t perform that action at this time.
0 commit comments