diff options
Diffstat (limited to 'app/views/projects/blob/_editor.html.haml')
-rw-r--r-- | app/views/projects/blob/_editor.html.haml | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/app/views/projects/blob/_editor.html.haml b/app/views/projects/blob/_editor.html.haml index 7d3a0c4a026..f2f753b4e86 100644 --- a/app/views/projects/blob/_editor.html.haml +++ b/app/views/projects/blob/_editor.html.haml @@ -3,7 +3,7 @@ - is_markdown = Gitlab::MarkupHelper.gitlab_markdown?(file_name) .file-holder-bottom-radius.file-holder.file.gl-mb-3 - .js-file-title.file-title.align-items-center.clearfix{ data: { current_action: action } } + .js-file-title.file-title.gl-display-flex.gl-align-items-center.clearfix{ data: { current_action: action } } .editor-ref.block-truncated.has-tooltip{ title: ref } = sprite_icon('fork', size: 12) = ref @@ -26,16 +26,18 @@ dismiss_key: @project.id, human_access: human_access } } - .file-buttons + .file-buttons.gl-display-flex.gl-align-items-center.gl-justify-content-end - if is_markdown = render 'shared/blob/markdown_buttons', show_fullscreen_button: false - = button_tag class: 'soft-wrap-toggle btn gl-button', type: 'button', tabindex: '-1' do - %span.no-wrap - = custom_icon('icon_no_wrap') - No wrap - %span.soft-wrap - = custom_icon('icon_soft_wrap') - Soft wrap + = button_tag class: 'soft-wrap-toggle btn gl-button btn-default', type: 'button', tabindex: '-1' do + .no-wrap + = sprite_icon('soft-unwrap', css_class: 'gl-button-icon') + %span.gl-button-text + No wrap + .soft-wrap + = sprite_icon('soft-wrap', css_class: 'gl-button-icon') + %span.gl-button-text + Soft wrap .file-editor.code .js-edit-mode-pane.qa-editor#editor{ data: { 'editor-loading': true } }< |