mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	compose: Make the Preview button the first, and Upload files the second.
We exchange the positions of the preview and upload buttons to make the preview button the first one, as the preview button is different from the other buttons in that it does not manipulate the contents of the ompose box.
This commit is contained in:
		@@ -1,16 +1,16 @@
 | 
				
			|||||||
<div class="compose-control-buttons-container order-1">
 | 
					<div class="compose-control-buttons-container order-1">
 | 
				
			||||||
    <input type="file" class="file_input notvisible" multiple />
 | 
					    <input type="file" class="file_input notvisible" multiple />
 | 
				
			||||||
    {{#if file_upload_enabled }}
 | 
					 | 
				
			||||||
    <div class="compose_control_button_container preview_mode_disabled" data-tippy-content="{{t 'Upload files' }}">
 | 
					 | 
				
			||||||
        <a role="button" class="compose_control_button compose_upload_file zulip-icon zulip-icon-attachment notdisplayed" aria-label="{{t 'Upload files' }}" tabindex=0></a>
 | 
					 | 
				
			||||||
    </div>
 | 
					 | 
				
			||||||
    {{/if}}
 | 
					 | 
				
			||||||
    <div class="compose_control_button_container" data-tippy-content="{{t 'Preview' }}">
 | 
					    <div class="compose_control_button_container" data-tippy-content="{{t 'Preview' }}">
 | 
				
			||||||
        <a role="button" class="markdown_preview compose_control_button zulip-icon zulip-icon-preview" aria-label="{{t 'Preview' }}" tabindex=0></a>
 | 
					        <a role="button" class="markdown_preview compose_control_button zulip-icon zulip-icon-preview" aria-label="{{t 'Preview' }}" tabindex=0></a>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div class="compose_control_button_container" data-tippy-content="{{t 'Write' }}">
 | 
					    <div class="compose_control_button_container" data-tippy-content="{{t 'Write' }}">
 | 
				
			||||||
        <a role="button" class="undo_markdown_preview compose_control_button fa fa-edit" aria-label="{{t 'Write' }}" tabindex=0 style="display:none;"></a>
 | 
					        <a role="button" class="undo_markdown_preview compose_control_button fa fa-edit" aria-label="{{t 'Write' }}" tabindex=0 style="display:none;"></a>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					    {{#if file_upload_enabled }}
 | 
				
			||||||
 | 
					    <div class="compose_control_button_container preview_mode_disabled" data-tippy-content="{{t 'Upload files' }}">
 | 
				
			||||||
 | 
					        <a role="button" class="compose_control_button compose_upload_file zulip-icon zulip-icon-attachment notdisplayed" aria-label="{{t 'Upload files' }}" tabindex=0></a>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					    {{/if}}
 | 
				
			||||||
    <div class="compose_control_button_container preview_mode_disabled" data-tippy-content="{{t 'Add video call' }}">
 | 
					    <div class="compose_control_button_container preview_mode_disabled" data-tippy-content="{{t 'Add video call' }}">
 | 
				
			||||||
        <a role="button" class="compose_control_button zulip-icon zulip-icon-video-call video_link" aria-label="{{t 'Add video call' }}" tabindex=0></a>
 | 
					        <a role="button" class="compose_control_button zulip-icon zulip-icon-video-call video_link" aria-label="{{t 'Add video call' }}" tabindex=0></a>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user