Skip to content

Commit

Permalink
change show contacts as avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
humorless committed Sep 5, 2024
1 parent db5d250 commit d145cf7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/co/gaiwan/compass/html/profiles.clj
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@

(o/defstyled profile-detail :div#detail
[image-frame :w-100px {--arc-thickness "7%"}]
;[:span [image-frame :w-50px {--arc-thickness "7%"}]]
([{:public-profile/keys [name hidden?]
:user/keys [uuid] :as user}]
[:<>
[image-frame {:profile/image (user/avatar-css-value user)}]
[:div [image-frame {:profile/image (user/avatar-css-value user)}]]
[:div.details
[:h3.title name]]
(if hidden?
Expand All @@ -74,7 +75,7 @@
[:label "Contacts"]
[:ul
(for [c (:user/contacts user)]
[:li (:public-profile/name c)])]]
[:span [image-frame {:profile/image (user/avatar-css-value c)}]])]]

#_[:div (pr-str user)]
[:div.actions
Expand Down Expand Up @@ -123,6 +124,7 @@
[row link params]]))

(o/defstyled profile-form :div#form
[image-frame :w-100px {--arc-thickness "7%"}]
[#{:label :input} :block]
[:label
:mb-1 :mt-2
Expand Down

0 comments on commit d145cf7

Please sign in to comment.