aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-01 13:23:33 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-01 13:26:45 +0100
commit38a13daeb39f81d58bf321eb2e0cedaf81de19b3 (patch)
tree05abbf1022e77ec9185940d37aa38b891d08940e /src
parentcf4f80373a0301219f0026ec07178e6e6d656f2e (diff)
feat: add default classes to uploader-avatar component
Diffstat (limited to 'src')
-rw-r--r--src/frontend/tubo/layout/views.cljs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frontend/tubo/layout/views.cljs b/src/frontend/tubo/layout/views.cljs
index f088eef..7dbff55 100644
--- a/src/frontend/tubo/layout/views.cljs
+++ b/src/frontend/tubo/layout/views.cljs
@@ -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