We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bdea94 commit 75e5743Copy full SHA for 75e5743
src/nextjournal/clerk.clj
@@ -88,7 +88,7 @@
88
([id] (case id ::taps (window! id {:title "🚰 Taps"} (col @!taps))))
89
([id content] (window! id {} content))
90
([id opts content]
91
- (webserver/update-window! id (merge opts {:nextjournal/presented (assoc (v/present content) :nextjournal/css-class ["px-0"])
+ (webserver/update-window! id (merge opts {:nextjournal/presented (update (v/present content) :nextjournal/css-class #(or % ["px-0"]))
92
:nextjournal/hash (gensym)
93
:nextjournal/fetch-opts {:blob-id (str id)}
94
:nextjournal/blob-id (str id)}))))
0 commit comments