Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ export const Editor: FC = () => {
{/* CODE EDITOR */}
<div
className={cn(
"absolute mt-12 flex h-full w-full justify-end p-3",
"pointer-events-none absolute mt-12 flex w-full justify-end p-3",
tab !== "code" && "hidden",
)}
>
<Button className="z-10" variant="subtle" size="sm" onClick={onCopy}>
<Button className="pointer-events-auto z-10" variant="subtle" size="sm" onClick={onCopy}>
{codeCopied ? <CheckIcon /> : <CopyIcon />} Copy
</Button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ const Debugger: FC<DebuggerProps> = ({ output }) => {
className="h-full w-full bg-surface-primary"
>
<ResizablePanel className="flex">
<div className="h-full w-full overflow-scroll break-all p-4">
<div className="h-full w-full overflow-scroll break-all p-4 text-sm font-mono">
<ReactJsonView
src={output ?? {}}
collapsed={1}
Expand Down
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
/* Styles for the JSON viewer */

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

Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
extend: {
fontFamily: {
sans: `"Inter Variable", system-ui, sans-serif`,
mono: `"DM Mono", system-mono, monospace`,
mono: `"DM Mono", monospace`,
},
size: {
"icon-lg": "1.5rem",
Expand Down