Skip to content

Commit ef9fe09

Browse files
committed
Merge remote-tracking branch 'origin/yona_dev'
2 parents b7057c4 + b9ee952 commit ef9fe09

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
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>

public/cpu.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/DebugUI.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
BugPlayIcon,
3+
FileQuestionMark,
34
PlayIcon,
45
PlusIcon,
56
SquareIcon,
@@ -28,6 +29,7 @@ import { neg } from "@/logic/nodeTypes/neg"
2829
import type { NodeType } from "@/logic/simulation"
2930
import { PopoverClose } from "@radix-ui/react-popover"
3031
import { not } from "@/logic/nodeTypes/not"
32+
import { Dialog, DialogContent, DialogTrigger } from "./ui/dialog"
3133

3234
type 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

0 commit comments

Comments
 (0)