|
428 | 428 | [triangle expanded?]] |
429 | 429 | [:span.group-hover:text-indigo-700 opening-paren]])) |
430 | 430 |
|
431 | | -(defn render-coll [xs {:as opts :keys [path viewer !expanded-at] :or {path []}}] |
| 431 | +(defn render-coll [xs {:as opts :keys [closing-paren path viewer !expanded-at] :or {path []}}] |
432 | 432 | (let [expanded? (get @!expanded-at path) |
433 | | - {:keys [opening-paren closing-paren]} viewer] |
| 433 | + {:keys [opening-paren]} viewer] |
434 | 434 | [:span.inspected-value.whitespace-nowrap |
435 | 435 | {:class (when expanded? "inline-flex")} |
436 | 436 | [:span |
|
455 | 455 | :on-click #(when (fn? fetch-fn) |
456 | 456 | (fetch-fn fetch-opts))} (- total offset) (when unbounded? "+") (if (fn? fetch-fn) " more…" " more elided")])]) |
457 | 457 |
|
458 | | -(defn render-map [xs {:as opts :keys [path viewer !expanded-at] :or {path []}}] |
459 | | - (let [expanded? (get @!expanded-at path) |
460 | | - {:keys [closing-paren]} viewer] |
| 458 | +(defn render-map [xs {:as opts :keys [closing-paren path viewer !expanded-at] :or {path []}}] |
| 459 | + (let [expanded? (get @!expanded-at path)] |
461 | 460 | [:span.inspected-value.whitespace-nowrap |
462 | 461 | {:class (when expanded? "inline-flex")} |
463 | 462 | [:span |
|
481 | 480 | (inspect-presented opts %))) |
482 | 481 | (if (string? s) [s] s)))) |
483 | 482 |
|
484 | | -(defn render-quoted-string [s {:as opts :keys [path viewer !expanded-at] :or {path []}}] |
485 | | - (let [{:keys [opening-paren closing-paren]} viewer] |
| 483 | +(defn render-quoted-string [s {:as opts :keys [closing-paren path viewer !expanded-at] :or {path []}}] |
| 484 | + (let [{:keys [opening-paren]} viewer] |
486 | 485 | [:span.inspected-value.inline-flex |
487 | 486 | [:span.cmt-string |
488 | 487 | (if (some #(and (string? %) (str/includes? % "\n")) (if (string? s) [s] s)) |
|
0 commit comments