diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-10 21:16:26 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-10 21:16:26 +0300 |
commit | 65c07bdbf0a4685654a102cd6c83d05e0977bfc1 (patch) | |
tree | 07aaaed1a0c405c177b23e97a48c6f89c4147431 | |
parent | 5b0bcd2c930ba2c4c2d7e9b17877df6839609d92 (diff) |
[skip ci] Convert img-responsive to img-fluid
-rw-r--r-- | app/assets/javascripts/blob/sketch/index.js | 2 | ||||
-rw-r--r-- | spec/javascripts/blob/sketch/index_spec.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/blob/sketch/index.js b/app/assets/javascripts/blob/sketch/index.js index 0799991aa40..13318c58006 100644 --- a/app/assets/javascripts/blob/sketch/index.js +++ b/app/assets/javascripts/blob/sketch/index.js @@ -44,7 +44,7 @@ export default class SketchLoader { previewLink.href = previewUrl; previewLink.target = '_blank'; previewImage.src = previewUrl; - previewImage.className = 'img-responsive'; + previewImage.className = 'img-fluid'; previewLink.appendChild(previewImage); this.container.appendChild(previewLink); diff --git a/spec/javascripts/blob/sketch/index_spec.js b/spec/javascripts/blob/sketch/index_spec.js index 79f40559817..e062a068a92 100644 --- a/spec/javascripts/blob/sketch/index_spec.js +++ b/spec/javascripts/blob/sketch/index_spec.js @@ -82,7 +82,7 @@ describe('Sketch viewer', () => { const img = document.querySelector('#js-sketch-viewer img'); expect(img).not.toBeNull(); - expect(img.classList.contains('img-responsive')).toBeTruthy(); + expect(img.classList.contains('img-fluid')).toBeTruthy(); }); it('renders link to image', () => { |