mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	media_query: Use 767px instead of 775px as md breakpoint.
We use 767px for hiding left column. The components changed here were tested to be working fine. This change is not likely to introduce any regression as the calculations in the components here were not dependent upon the breakpoint being at 775px.
This commit is contained in:
		@@ -63,7 +63,9 @@ exports.initialize = function () {
 | 
				
			|||||||
                ") { .compose-content, .header-main .column-middle { margin-right: " +
 | 
					                ") { .compose-content, .header-main .column-middle { margin-right: " +
 | 
				
			||||||
                (7 + sbWidth) +
 | 
					                (7 + sbWidth) +
 | 
				
			||||||
                "px !important; } } " +
 | 
					                "px !important; } } " +
 | 
				
			||||||
                "@media (max-width: 775px) { .fixed-app .column-middle { margin-left: " +
 | 
					                "@media (max-width: " +
 | 
				
			||||||
 | 
					                media_breakpoints["xl-max"] +
 | 
				
			||||||
 | 
					                ") { .fixed-app .column-middle { margin-left: " +
 | 
				
			||||||
                (7 + sbWidth) +
 | 
					                (7 + sbWidth) +
 | 
				
			||||||
                "px !important; } } " +
 | 
					                "px !important; } } " +
 | 
				
			||||||
                "</style>",
 | 
					                "</style>",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -503,7 +503,7 @@ a#undo_markdown_preview {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@media (max-width: 775px) {
 | 
					@media (max-width: $md-max) {
 | 
				
			||||||
    .compose-content {
 | 
					    .compose-content {
 | 
				
			||||||
        margin-right: 7px;
 | 
					        margin-right: 7px;
 | 
				
			||||||
        margin-left: 7px;
 | 
					        margin-left: 7px;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -210,7 +210,7 @@
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@media (max-width: 775px) {
 | 
					@media (max-width: $md-max) {
 | 
				
			||||||
    #user_search_section .user-list-filter {
 | 
					    #user_search_section .user-list-filter {
 | 
				
			||||||
        /* input should be 100% - 6px padding x2 - 1px border x2. */
 | 
					        /* input should be 100% - 6px padding x2 - 1px border x2. */
 | 
				
			||||||
        width: calc(100% - 12px - 2px);
 | 
					        width: calc(100% - 12px - 2px);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,7 +17,7 @@
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@media (max-width: 775px) {
 | 
					@media (max-width: $md-max) {
 | 
				
			||||||
    #typing_notifications {
 | 
					    #typing_notifications {
 | 
				
			||||||
        margin-right: 7px;
 | 
					        margin-right: 7px;
 | 
				
			||||||
        margin-left: 7px;
 | 
					        margin-left: 7px;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2680,7 +2680,7 @@ select.inline_select_topic_edit {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@media (max-width: 775px) {
 | 
					@media (max-width: $md-max) {
 | 
				
			||||||
    body {
 | 
					    body {
 | 
				
			||||||
        padding: 0;
 | 
					        padding: 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user