A platform for community discussion. Free, open, simple.
UX: Consistent profile image positioning on desktop and mobile
Kris254de64df797
diff --git a/app/assets/stylesheets/common/base/user.scss b/app/assets/stylesheets/common/base/user.scssindex d0b2b7d94af..e148cbf00ea 100644--- a/app/assets/stylesheets/common/base/user.scss+++ b/app/assets/stylesheets/common/base/user.scss@@ -101,6 +101,14 @@width: 100%;margin-bottom: 15px;+ &.has-background {+ .user-profile-image {+ background-size: cover;+ background-position: center center;+ background-repeat: no-repeat;+ }+ }+.secondary {display: inline-block;width: 100%;diff --git a/app/assets/stylesheets/desktop/user.scss b/app/assets/stylesheets/desktop/user.scssindex 77e32201060..dcc27fcea38 100644--- a/app/assets/stylesheets/desktop/user.scss+++ b/app/assets/stylesheets/desktop/user.scss@@ -151,8 +151,6 @@&.has-background {.user-profile-image {height: 300px;- background-size: cover;- background-repeat: no-repeat;}.details {box-sizing: border-box;diff --git a/app/assets/stylesheets/mobile/user.scss b/app/assets/stylesheets/mobile/user.scssindex 12b8806a4bc..0b00b492f71 100644--- a/app/assets/stylesheets/mobile/user.scss+++ b/app/assets/stylesheets/mobile/user.scss@@ -132,12 +132,9 @@&.has-background {.user-profile-image {height: 200px;- background-size: contain;- background-position: top center;- background-repeat: no-repeat;}.user-profile-avatar {- margin-top: s(-24);+ margin-top: s(-15);}}