Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
65c07bdb
Commit
65c07bdb
authored
Apr 10, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] Convert img-responsive to img-fluid
parent
5b0bcd2c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/blob/sketch/index.js
app/assets/javascripts/blob/sketch/index.js
+1
-1
spec/javascripts/blob/sketch/index_spec.js
spec/javascripts/blob/sketch/index_spec.js
+1
-1
No files found.
app/assets/javascripts/blob/sketch/index.js
View file @
65c07bdb
...
...
@@ -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
);
...
...
spec/javascripts/blob/sketch/index_spec.js
View file @
65c07bdb
...
...
@@ -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
'
,
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment