mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 17:00:36 -05:00
🐛 Fixes problem with image in profile
This commit is contained in:
parent
b53fceefb9
commit
507550edad
2 changed files with 5 additions and 5 deletions
|
@ -100,8 +100,7 @@
|
|||
}
|
||||
|
||||
&:hover {
|
||||
img {display: none;}
|
||||
.update-overlay {opacity: 1};
|
||||
.update-overlay {opacity: 0.8};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
[app.util.i18n :as i18n :refer [tr t]]
|
||||
[cljs.spec.alpha :as s]
|
||||
[cuerdas.core :as str]
|
||||
[rumext.alpha :as mf]))
|
||||
[rumext.alpha :as mf]
|
||||
[app.config :as cfg]))
|
||||
|
||||
(s/def ::fullname ::us/not-empty-string)
|
||||
(s/def ::email ::us/email)
|
||||
|
@ -90,10 +91,10 @@
|
|||
[{:keys [locale] :as props}]
|
||||
(let [file-input (mf/use-ref nil)
|
||||
profile (mf/deref refs/profile)
|
||||
photo (:photo-uri profile)
|
||||
photo (:photo profile)
|
||||
photo (if (or (str/empty? photo) (nil? photo))
|
||||
"images/avatar.jpg"
|
||||
photo)
|
||||
(cfg/resolve-media-path photo))
|
||||
|
||||
on-image-click #(dom/click (mf/ref-val file-input))
|
||||
|
||||
|
|
Loading…
Reference in a new issue