diff options
author | Paul Slaughter <pslaughter@gitlab.com> | 2018-07-24 11:33:07 -0500 |
---|---|---|
committer | Paul Slaughter <pslaughter@gitlab.com> | 2018-07-24 11:44:29 -0500 |
commit | 818a8314cbd97fb78cf444d16801e60c63188d79 (patch) | |
tree | 4e5970c6c72e3acb48421fa4e18989074402e1fa | |
parent | a7572ee70e3bda02880efa48f313a2d0ac71ee67 (diff) | |
download | gitlab-ce-818a8314cbd97fb78cf444d16801e60c63188d79.tar.gz |
Rename class dragHandle to drag-handle
-rw-r--r-- | app/assets/javascripts/vue_shared/components/panel_resizer.vue | 2 | ||||
-rw-r--r-- | app/assets/stylesheets/pages/repo.scss | 2 | ||||
-rw-r--r-- | spec/javascripts/vue_shared/components/panel_resizer_spec.js | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/vue_shared/components/panel_resizer.vue b/app/assets/javascripts/vue_shared/components/panel_resizer.vue index 8c2dcc2d902..f3bc387318d 100644 --- a/app/assets/javascripts/vue_shared/components/panel_resizer.vue +++ b/app/assets/javascripts/vue_shared/components/panel_resizer.vue @@ -84,7 +84,7 @@ <div :class="className" :style="cursorStyle" - class="dragHandle" + class="drag-handle" @mousedown="startDrag" @dblclick="resetSize" ></div> diff --git a/app/assets/stylesheets/pages/repo.scss b/app/assets/stylesheets/pages/repo.scss index d8545882647..0dada5f9db8 100644 --- a/app/assets/stylesheets/pages/repo.scss +++ b/app/assets/stylesheets/pages/repo.scss @@ -781,7 +781,7 @@ } } -.dragHandle { +.drag-handle { position: absolute; top: 0; bottom: 0; diff --git a/spec/javascripts/vue_shared/components/panel_resizer_spec.js b/spec/javascripts/vue_shared/components/panel_resizer_spec.js index 8efcb54659d..6f4c3c99b76 100644 --- a/spec/javascripts/vue_shared/components/panel_resizer_spec.js +++ b/spec/javascripts/vue_shared/components/panel_resizer_spec.js @@ -29,7 +29,7 @@ describe('Panel Resizer component', () => { }); expect(vm.$el.tagName).toEqual('DIV'); - expect(vm.$el.getAttribute('class')).toBe('dragHandle dragleft'); + expect(vm.$el.getAttribute('class')).toBe('drag-handle dragleft'); expect(vm.$el.getAttribute('style')).toBe('cursor: ew-resize;'); }); @@ -40,7 +40,7 @@ describe('Panel Resizer component', () => { }); expect(vm.$el.tagName).toEqual('DIV'); - expect(vm.$el.getAttribute('class')).toBe('dragHandle dragright'); + expect(vm.$el.getAttribute('class')).toBe('drag-handle dragright'); }); it('drag the resizer', () => { |