diff --git a/src/jsonformatter.ts b/src/jsonformatter.ts index f9f6022..a4f0040 100644 --- a/src/jsonformatter.ts +++ b/src/jsonformatter.ts @@ -217,6 +217,7 @@ function toHTML(content: string, title: string) { return ` ${htmlEncode(title)} + ${content} diff --git a/src/viewer.css b/src/viewer.css index 77ad30b..c35e94e 100644 --- a/src/viewer.css +++ b/src/viewer.css @@ -43,6 +43,7 @@ body { .collapsible.collapsed { height: 1.2em; + height: 1lh; width: 1em; display: inline-block; overflow: hidden; @@ -185,4 +186,12 @@ h1 { .spacer { display: inline-block; width: 0px; -} \ No newline at end of file +} + +.string, :any-link { + word-break: break-all; +} + +:is(.spacer, :not(.quoted) > .q)::selection { + background-color: transparent; +}