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 upload spinner alignment in image upload widgets.

sayamsamalb06178767bbf
diff --git a/static/styles/image_upload_widget.css b/static/styles/image_upload_widget.css
index 8d7c8d5c2c8..229e3d94f1e 100644
--- a/static/styles/image_upload_widget.css
+++ b/static/styles/image_upload_widget.css
@@ -95,6 +95,9 @@
}
.upload-spinner-background {
+ display: flex;
+ justify-content: center;
+ align-items: center;
background-color: hsl(0, 0%, 10%);
font-size: 0.8rem;
width: 100%;
@@ -109,7 +112,6 @@
.image_upload_spinner {
position: absolute;
z-index: 99;
- display: block;
}
&:hover {
@@ -155,13 +157,6 @@
font-size: 3rem;
}
- .image_upload_spinner {
- top: 40%;
- right: 40%;
- width: 50px;
- height: 50px;
- }
-
.image-block {
border-radius: 5px;
box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.1);
@@ -189,13 +184,6 @@
height: 100px;
border-radius: 5px;
box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.1);
-
- .image_upload_spinner {
- width: 40px;
- height: 40px;
- top: 30%;
- right: 30%;
- }
}
.realm-icon-section {
@@ -210,17 +198,6 @@
height: 55px;
text-align: center;
- .upload-spinner-background {
- left: 0;
- }
-
- .image_upload_spinner {
- width: 45px;
- height: 55px;
- top: 5%;
- right: 40%;
- }
-
.image-delete-button {
top: 5px;
right: 5px;