Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gab-social
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
gab
social
gab-social
Commits
ad906f0b
Commit
ad906f0b
authored
Jan 17, 2020
by
mgabdev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TESTING gifs
parent
b8aede03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
app/javascript/gabsocial/components/media_gallery.js
app/javascript/gabsocial/components/media_gallery.js
+13
-0
No files found.
app/javascript/gabsocial/components/media_gallery.js
View file @
ad906f0b
...
...
@@ -70,6 +70,12 @@ class Item extends React.PureComponent {
e
.
stopPropagation
();
}
onLoadedData
=
(
e
)
=>
{
if
(
!
this
.
hoverToPlay
())
{
e
.
target
.
play
();
}
};
componentDidMount
()
{
if
(
this
.
props
.
attachment
.
get
(
'
blurhash
'
))
{
this
.
_decode
();
...
...
@@ -188,9 +194,16 @@ class Item extends React.PureComponent {
<
video
ref
=
{
this
.
setVideoRef
}
className
=
'
media-gallery__item-gifv-thumbnail
'
aria
-
label
=
{
attachment
.
get
(
'
description
'
)}
title
=
{
attachment
.
get
(
'
description
'
)}
role
=
'
application
'
src
=
{
gifsrc
}
type
=
'
video/mp4
'
autoPlay
=
{
autoPlay
}
onLoadedData
=
{
this
.
onLoadedData
}
preload
=
'
auto
'
loop
muted
playsInline
/>
...
...
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