Skip to content

Commit c3befb7

Browse files
committed
some image style
1 parent fa71835 commit c3befb7

2 files changed

Lines changed: 47 additions & 2 deletions

File tree

calcit.cirru

Lines changed: 40 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compact.cirru

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@
303303
{} $ :class-name (str-spaced style-message-list)
304304
if
305305
= :imagin-3 $ w-js-log model
306-
img $ {} (:class-name "\"show-image")
306+
img $ {}
307+
:class-name $ str-spaced style-image "\"show-image"
307308
if (:loading? state)
308309
div ({})
309310
memof1-call-by :abort-loading comp-abort $ str (turn-str model) "\" loading..."
@@ -481,6 +482,11 @@
481482
:code $ quote
482483
defstyle style-code-content $ {}
483484
"\"&" $ {} (:line-height "\"1.5") (:font-size 13)
485+
|style-image $ %{} :CodeEntry (:doc |)
486+
:code $ quote
487+
defstyle style-image $ {}
488+
"\"&" $ {} (:max-width "\"100%") (:border-radius "\"6px")
489+
:border $ str "\"1px solid " (hsl 0 0 90)
484490
|style-md-content $ %{} :CodeEntry (:doc |)
485491
:code $ quote
486492
defstyle style-md-content $ {}

0 commit comments

Comments
 (0)