Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(feat) use xlarge images in feeds
· 122e36a1
Martin Santangelo
authored
Nov 08, 2019
122e36a1
Merge branch 'feat/use-high-res-images-feeds' into release/3.11.0
· 32389e01
Martin Santangelo
authored
Nov 08, 2019
32389e01
Hide whitespace changes
Inline
Side-by-side
__tests__/common/components/__snapshots__/MediaView.js.snap
View file @
32389e01
...
@@ -38,7 +38,7 @@ exports[`Media view component renders correctly 1`] = `
...
@@ -38,7 +38,7 @@ exports[`Media view component renders correctly 1`] = `
"getThumbSource": [MockFunction] {
"getThumbSource": [MockFunction] {
"calls": Array [
"calls": Array [
Array [
Array [
"large",
"
x
large",
],
],
],
],
"results": Array [
"results": Array [
...
...
src/common/components/MediaView.js
View file @
32389e01
...
@@ -63,7 +63,7 @@ export default class MediaView extends Component {
...
@@ -63,7 +63,7 @@ export default class MediaView extends Component {
switch
(
type
)
{
switch
(
type
)
{
case
'
image
'
:
case
'
image
'
:
case
'
batch
'
:
case
'
batch
'
:
source
=
this
.
props
.
entity
.
getThumbSource
(
'
large
'
);
source
=
this
.
props
.
entity
.
getThumbSource
(
'
x
large
'
);
return
this
.
getImage
(
source
);
return
this
.
getImage
(
source
);
case
'
video
'
:
case
'
video
'
:
return
this
.
getVideo
();
return
this
.
getVideo
();
...
...