mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	compose: Create the mobile compose + button.
				
					
				
			Use CSS to display a `+` button on mobile but keep the more verbose buttons on desktop. In the future, this button will be used to display a popop for a new message.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							48810f43be
						
					
				
				
					commit
					9249d08a96
				
			@@ -478,7 +478,14 @@ a#undo_markdown_preview {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@media (max-width: 700px) {
 | 
					@media (max-width: 700px) {
 | 
				
			||||||
    #compose_buttons .compose_reply_button {
 | 
					    #compose_buttons .compose_stream_button,
 | 
				
			||||||
 | 
					    #compose_buttons .compose_private_button {
 | 
				
			||||||
 | 
					        display: none;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@media (min-width: 700px) {
 | 
				
			||||||
 | 
					    #compose_buttons .compose_mobile_button {
 | 
				
			||||||
        display: none;
 | 
					        display: none;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,6 +14,13 @@
 | 
				
			|||||||
                    </a>
 | 
					                    </a>
 | 
				
			||||||
                    <span class="alert-draft pull-left">{{ _('Saved as draft') }}</span>
 | 
					                    <span class="alert-draft pull-left">{{ _('Saved as draft') }}</span>
 | 
				
			||||||
                </span>
 | 
					                </span>
 | 
				
			||||||
 | 
					                <span class="new_message_button">
 | 
				
			||||||
 | 
					                    <button type="button" class="button small rounded compose_mobile_button"
 | 
				
			||||||
 | 
					                      id="left_bar_compose_mobile_button_big"
 | 
				
			||||||
 | 
					                      title="{{ _('New message') }} (c)">
 | 
				
			||||||
 | 
					                        <i class="fa fa-plus" aria-hidden="true"></i>
 | 
				
			||||||
 | 
					                    </button>
 | 
				
			||||||
 | 
					                </span>
 | 
				
			||||||
                <span class="new_message_button">
 | 
					                <span class="new_message_button">
 | 
				
			||||||
                    <button type="button" class="button small rounded compose_stream_button"
 | 
					                    <button type="button" class="button small rounded compose_stream_button"
 | 
				
			||||||
                      id="left_bar_compose_stream_button_big"
 | 
					                      id="left_bar_compose_stream_button_big"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user