-
- Downloads
Render add-diff-note button with server.
This commit moves the rendering of the button back to the server, and shows/hides it using opacity rather than display. It also removes the transform applied to the button on hover (scale). Previously, both of these factors automatically triggered a reflow, which creates a performance bottleneck on pages with larger DOM size. MR: !12103
Showing
- app/assets/javascripts/diff.js 4 additions, 1 deletionapp/assets/javascripts/diff.js
- app/assets/javascripts/diff_notes/components/diff_note_avatars.js 2 additions, 2 deletions...ts/javascripts/diff_notes/components/diff_note_avatars.js
- app/assets/javascripts/files_comment_button.js 58 additions, 135 deletionsapp/assets/javascripts/files_comment_button.js
- app/assets/javascripts/notes.js 6 additions, 3 deletionsapp/assets/javascripts/notes.js
- app/assets/javascripts/single_file_diff.js 4 additions, 0 deletionsapp/assets/javascripts/single_file_diff.js
- app/assets/stylesheets/pages/diff.scss 3 additions, 5 deletionsapp/assets/stylesheets/pages/diff.scss
- app/assets/stylesheets/pages/notes.scss 7 additions, 3 deletionsapp/assets/stylesheets/pages/notes.scss
- app/helpers/notes_helper.rb 12 additions, 0 deletionsapp/helpers/notes_helper.rb
- app/views/projects/diffs/_line.html.haml 2 additions, 1 deletionapp/views/projects/diffs/_line.html.haml
- app/views/projects/diffs/_parallel_view.html.haml 5 additions, 2 deletionsapp/views/projects/diffs/_parallel_view.html.haml
- features/steps/shared/diff_note.rb 1 addition, 1 deletionfeatures/steps/shared/diff_note.rb
- spec/features/expand_collapse_diffs_spec.rb 1 addition, 1 deletionspec/features/expand_collapse_diffs_spec.rb
Please register or sign in to comment