Dont use with-list-group macro in with-card*
This commit is contained in:
parent
ed1987691b
commit
34a6e478e2
1 changed files with 10 additions and 8 deletions
|
@ -190,16 +190,16 @@ Example:
|
|||
"Creates a Bootstrap card with a header, optional list items, and additional content.
|
||||
|
||||
Example:
|
||||
(with-card* :col \"col-lg-12\"
|
||||
(with-card* :col \"lg-12\"
|
||||
:card-image (\"foo.png\" . \"foo image\")
|
||||
:card-header \"Foo\"
|
||||
:card-items '(\"foo\" \"bar\")
|
||||
:card-body \"body\")"
|
||||
(destructuring-bind (&key col card-image card-header card-items card-body) body
|
||||
(let ((col-class (if col col "col"))
|
||||
(let ((class-str (format nil "col~@[-~A~]" col))
|
||||
(sizing-class "card h-100"))
|
||||
`(spinneret:with-html
|
||||
(:div :class ,col-class
|
||||
(:div :class ,class-str
|
||||
(:div :class ,sizing-class
|
||||
,@(if card-image
|
||||
`((:img :class "card-img-top"
|
||||
|
@ -208,6 +208,8 @@ Example:
|
|||
,@(if card-header
|
||||
`((:h5 :class "card-header" ,card-header)))
|
||||
,@(if card-items
|
||||
`((with-list-group t ,card-items)))
|
||||
`((:ul :class "list-group list-group-flush"
|
||||
(dolist (item ,card-items)
|
||||
(:li :class "list-group-item" item)))))
|
||||
(:div :class "card-body"
|
||||
,card-body)))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue