diff --git a/frontend/resources/styles/main/partials/dashboard-settings.scss b/frontend/resources/styles/main/partials/dashboard-settings.scss index c09e6d40a..c273e3b71 100644 --- a/frontend/resources/styles/main/partials/dashboard-settings.scss +++ b/frontend/resources/styles/main/partials/dashboard-settings.scss @@ -100,8 +100,7 @@ } &:hover { - img {display: none;} - .update-overlay {opacity: 1}; + .update-overlay {opacity: 0.8}; } } } diff --git a/frontend/src/app/main/ui/settings/profile.cljs b/frontend/src/app/main/ui/settings/profile.cljs index e07c53654..7024e42f6 100644 --- a/frontend/src/app/main/ui/settings/profile.cljs +++ b/frontend/src/app/main/ui/settings/profile.cljs @@ -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))