Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Fix responsiveness of the profile avatar.

Sayam Samalbbfc958c6228
diff --git a/static/styles/image_upload_widget.css b/static/styles/image_upload_widget.css
index 8f182602ba4..005bac438d3 100644
--- a/static/styles/image_upload_widget.css
+++ b/static/styles/image_upload_widget.css
@@ -105,6 +105,7 @@
.user-avatar-section,
.realm-logo-section,
.realm-icon-section {
+ margin-bottom: 20px;
position: relative;
.inline-block {
@@ -189,7 +190,6 @@
.realm-icon-section {
float: none;
- margin-bottom: 20px;
display: inline-block;
}
@@ -227,10 +227,6 @@
background-color: hsl(212, 28%, 18%);
}
-.realm-logo-section {
- margin-bottom: 20px;
-}
-
.realm-logo-block {
display: inline-block;
}
diff --git a/static/styles/settings.css b/static/styles/settings.css
index 5c12f03ee9d..b13812b1ba5 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -107,6 +107,12 @@ h3 .fa-question-circle-o {
}
}
+.profile-settings-form {
+ display: flex;
+ justify-content: space-between;
+ flex-wrap: wrap-reverse;
+}
+
.user-avatar-section {
float: right;
@@ -1896,6 +1902,12 @@ input[type="checkbox"] {
/* This value needs to match with the same in subscriptions.css, as
we have some shared styles declared there */
@media (width < $md_min) {
+ .profile-settings-form {
+ .user-avatar-section {
+ flex: 100%;
+ }
+ }
+
#settings_overlay_container {
/* this variable allows JavaScript to detect this media query */
--single-column: yes;