Skip to content

Commit d225a41

Browse files
authored
Merge pull request #9 from coder/brett/small-fixes
fix: implement some small fixes
2 parents f05920f + 02f2283 commit d225a41

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/Editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ export const Editor: FC = () => {
132132
{/* CODE EDITOR */}
133133
<div
134134
className={cn(
135-
"absolute mt-12 flex h-full w-full justify-end p-3",
135+
"pointer-events-none absolute mt-12 flex w-full justify-end p-3",
136136
tab !== "code" && "hidden",
137137
)}
138138
>
139-
<Button className="z-10" variant="subtle" size="sm" onClick={onCopy}>
139+
<Button className="pointer-events-auto z-10" variant="subtle" size="sm" onClick={onCopy}>
140140
{codeCopied ? <CheckIcon /> : <CopyIcon />} Copy
141141
</Button>
142142
</div>

src/Preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ const Debugger: FC<DebuggerProps> = ({ output }) => {
388388
className="h-full w-full bg-surface-primary"
389389
>
390390
<ResizablePanel className="flex">
391-
<div className="h-full w-full overflow-scroll break-all p-4">
391+
<div className="h-full w-full overflow-scroll break-all p-4 text-sm font-mono">
392392
<ReactJsonView
393393
src={output ?? {}}
394394
collapsed={1}

src/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
/* Styles for the JSON viewer */
134134

135135
.react-json-view {
136+
font-family: "DM Mono", monospace !important;
136137
background: hsl(var(--surface-primary)) !important;
137138
}
138139

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
extend: {
1111
fontFamily: {
1212
sans: `"Inter Variable", system-ui, sans-serif`,
13-
mono: `"DM Mono", system-mono, monospace`,
13+
mono: `"DM Mono", monospace`,
1414
},
1515
size: {
1616
"icon-lg": "1.5rem",

0 commit comments

Comments
 (0)