Skip to content

Commit 9df3224

Browse files
committed
More highlighting tweaks
1 parent 4cc4d66 commit 9df3224

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/portal/ui/inspector.cljs

+6-3
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,12 @@
337337
string)))
338338

339339
(defn highlight-words [string]
340-
(let [[sensor visible?] (l/use-visible)]
341-
(if visible?
342-
[highlight-words* string]
340+
(let [[sensor visible?] (l/use-visible)
341+
readonly? (:readonly? (use-context))]
342+
(cond
343+
readonly? string
344+
visible? [highlight-words* string]
345+
:else
343346
[s/span
344347
{:style {:position :relative}}
345348
string

0 commit comments

Comments
 (0)