Skip to content

Commit

Permalink
fix: update version and fix hover (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
acao authored Jun 2, 2024
1 parent 3ca70d0 commit 88b94c8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
<body
className={cn(
"min-h-screen bg-background font-sans antialiased",
fontSans.variable
fontSans.variable ?? ""
)}
>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
Expand Down
1 change: 0 additions & 1 deletion store/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { EditorView } from "codemirror"
import { JSONMode } from "codemirror-json-schema"
import json5 from "json5"
import { UseBoundStore, create } from "zustand"
import {
Expand Down
33 changes: 28 additions & 5 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,33 @@
@apply bg-background text-foreground;
font-feature-settings: "rlig" 1, "calt" 1;
}
code {
filter: brightness(0.85);
}
.dark code {
filter: brightness(var(--background));
code, pre {
filter: brightness(0.8);
}

}


.cm-lintRange-error {
text-decoration: underline wavy red;
}
.cm6-json-schema-hover,
.cm-editor .cm-diagnostic-error {
font-size: 0.9rem;
padding: 0.5rem;
}
.cm6-json-schema-hover--description {
padding-bottom: 0.5rem;
margin-bottom: .5rem;
max-width: 600px;
border-bottom: 1px solid #888;
}

.cm6-json-schema-hover--code-wrapper {
font-size: .9rem;
font-family: 'Courier New', Courier, monospace;
padding: 0.3rem;
background-color: white;
color: black;
display: inline-block;
}

0 comments on commit 88b94c8

Please sign in to comment.