Skip to content

Commit

Permalink
feat: add default classes to uploader-avatar component
Browse files Browse the repository at this point in the history
  • Loading branch information
migalmoreno committed Dec 1, 2024
1 parent cf4f803 commit 38a13da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/frontend/tubo/layout/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@
(map-indexed #(with-meta %2 {:key %1}) children)])

(defn uploader-avatar
[{:keys [uploader-avatar uploader-name uploader-url]}]
[{:keys [uploader-avatar uploader-name uploader-url]}
& {:keys [classes] :or {classes ["w-12" "xs:w-16" "h-12" "xs:h-16"]}}]
(when uploader-avatar
[:div.relative.w-12.xs:w-16.h-12.xs:h-16.flex-auto.flex.items-center.shrink-0
[:div.relative.flex-auto.flex.items-center.shrink-0.grow-0 {:class classes}
(conj
(when uploader-url
[:a.flex-auto.flex.min-h-full.min-w-full.max-h-full.max-w-full
Expand Down

0 comments on commit 38a13da

Please sign in to comment.