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 a2f66957b7d..aec5a99ed45 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 1d647f2faa4..5f31e02118e 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; }