From 15a529e1e5a58e48604f654b57d90d26f0882dec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Ligier?= Date: Sun, 20 Aug 2023 16:57:11 +0200 Subject: [PATCH] display block for better selection --- doc/src/components/code/Highlight.module.css | 13 +++++++------ doc/src/components/code/Highlight.tsx | 5 ++++- src/watch/WatchProcess.ts | 2 +- tasks/test.ts | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/doc/src/components/code/Highlight.module.css b/doc/src/components/code/Highlight.module.css index dbec667c..432e23c9 100644 --- a/doc/src/components/code/Highlight.module.css +++ b/doc/src/components/code/Highlight.module.css @@ -20,12 +20,6 @@ pre.highlight-line-numbers { padding-left: 0; } -pre.highlight>code { - position: relative; - z-index: 1; - font-family: inherit; -} - pre.line-numbers { position: absolute; top: 0; @@ -49,6 +43,13 @@ pre.line-highlights { margin: 0; } +pre.highlight>.code { + display: block; + position: relative; + z-index: 1; + font-family: inherit; +} + .line-highlights .highlight { background: hsla(24, 20%, 50%, .2); } \ No newline at end of file diff --git a/doc/src/components/code/Highlight.tsx b/doc/src/components/code/Highlight.tsx index 2ed16cf2..3b95db11 100644 --- a/doc/src/components/code/Highlight.tsx +++ b/doc/src/components/code/Highlight.tsx @@ -27,11 +27,14 @@ export function Highlight(
                 
             
diff --git a/src/watch/WatchProcess.ts b/src/watch/WatchProcess.ts index 431d564c..d212248c 100644 --- a/src/watch/WatchProcess.ts +++ b/src/watch/WatchProcess.ts @@ -14,7 +14,7 @@ export class WatchProcess { this.#listeners = []; const command = Deno.execPath(); - const args = ["--unstable", "run", "-A", "--watch", Deno.mainModule]; + const args = ["run", "-A", "--watch", Deno.mainModule]; log(`Setup watch process process`, { scope: "WatchProcess", level: "debug", diff --git a/tasks/test.ts b/tasks/test.ts index 6b8eb5ab..79f15210 100644 --- a/tasks/test.ts +++ b/tasks/test.ts @@ -34,7 +34,7 @@ try { } async function runTest(path: string) { - const commandArgs = ["test", "--unstable", "-A", "--no-check"]; + const commandArgs = ["test", "-A", "--no-check"]; if (args.coverage) { commandArgs.push(`--coverage=${covProfileDir}`); }