Skip to content

Commit

Permalink
use person-remove icon for remove button
Browse files Browse the repository at this point in the history
  • Loading branch information
humorless committed Sep 5, 2024
1 parent b7b137f commit 34b9da8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/co/gaiwan/compass/html/graphics.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
[:path.triangle {:d "m 27.014067,26.404815 14.950042,-8.631421 -0.0025,-0.0028 -11.790743,-3.159345 -3.159301,11.790767 z"}]
[:path.leg {:d "M 39.334691,86.310778 C 37.137742,85.592591 35.93936,83.229026 36.658422,81.032361 l 9.585531,-31.540687 5.276789,-2.675454 2.675453,5.276791 -9.584714,31.542313 c -1.000278,2.14767 -3.166747,3.329559 -5.27679,2.675454 z"}]]))


(o/defstyled hamburger :svg
{:stroke-width "13%"
:stroke-linecap "round"
Expand All @@ -24,6 +23,14 @@
(for [x [1 7.5 14]]
[:path {:d (str "M 2," x " H 18")}])]))

(o/defstyled person-remove :svg
([]
[:<> {:viewBox "0 0 24 24"}
[:rect {:fill "none", :height "24", :width "24"}]
[:path
{:d
"M14,8c0-2.21-1.79-4-4-4S6,5.79,6,8s1.79,4,4,4S14,10.21,14,8z M17,10v2h6v-2H17z M2,18v2h16v-2c0-2.66-5.33-4-8-4 S2,15.34,2,18z"}]]))

(o/defstyled cross :svg
{:stroke-width "13%"
:stroke-linecap "round"
Expand Down
3 changes: 2 additions & 1 deletion src/co/gaiwan/compass/html/profiles.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"Views and components (hiccup/ornament) related to profiles"
{:ornament/prefix "profiles-"}
(:require
[co.gaiwan.compass.html.graphics :as graphics]
[co.gaiwan.compass.css.tokens :as t :refer :all]
[co.gaiwan.compass.db.queries :as queries]
[co.gaiwan.compass.http.routing :refer [url-for]]
Expand Down Expand Up @@ -83,7 +84,7 @@
(for [c (:user/contacts user)]
[:div.contact
[image-frame {:profile/image (user/avatar-css-value c)}]
[:button.remove-btn "Remove"]])]]
[:button.remove-btn [graphics/person-remove]]])]]

#_[:div (pr-str user)]
;; Disable Edit Profile before we can show profile details pretty
Expand Down

0 comments on commit 34b9da8

Please sign in to comment.