FIX: remove old usercard styles, fix bg img class (#12712)

FIX: remove old usercard styles, fix bg img class (#12712)

diff --git a/app/assets/javascripts/discourse/app/components/user-card-contents.js b/app/assets/javascripts/discourse/app/components/user-card-contents.js
index a2f6695..aec5a99 100644
--- a/app/assets/javascripts/discourse/app/components/user-card-contents.js
+++ b/app/assets/javascripts/discourse/app/components/user-card-contents.js
@@ -20,7 +20,7 @@ export default Component.extend(CardContentsBase, CanCheckEmails, CleansUp, {
   classNameBindings: [
     "visible:show",
     "showBadges",
-    "user.card_background::no-bg",
+    "user.card_background_upload_url::no-bg",
     "isFixed:fixed",
     "usernameClass",
   ],
diff --git a/app/assets/stylesheets/common/components/user-card.scss b/app/assets/stylesheets/common/components/user-card.scss
index 1d647f2..5f31e02 100644
--- a/app/assets/stylesheets/common/components/user-card.scss
+++ b/app/assets/stylesheets/common/components/user-card.scss
@@ -48,7 +48,6 @@ $avatar_margin: -50px; // negative margin makes avatars extend above cards
   .card-content {
     padding: 10px;
     background: rgba(var(--secondary-rgb), 0.85);
-    margin-top: 80px;
     &:after {
       content: "";
       display: block;
@@ -61,11 +60,6 @@ $avatar_margin: -50px; // negative margin makes avatars extend above cards
       @include line-clamp(2);
     }
   }
-  &.no-bg {
-    .card-content {
-      margin-top: 0;
-    }
-  }
   .card-row:not(.first-row) {
     margin-top: 0.5em;
   }

GitHub sha: d89e9fcf

1 Like

This commit appears in #12712 which was approved by CvX. It was merged by awesomerobot.