This commit is contained in:
Henry Jameson 2018-02-03 20:37:27 +03:00
parent 55bc1a3414
commit 5efd8a4aa6
2 changed files with 5 additions and 9 deletions

View File

@ -1,16 +1,9 @@
import fileTypeService from '../../services/file_type/file_type.service.js'
const StillImage = { const StillImage = {
props: [ props: [
'src', 'src',
'referrerpolicy', 'referrerpolicy',
'mimetype' 'mimetype'
], ],
data () {
return {
hideNsfwLocal: this.$store.state.config.hideNsfw,
}
},
computed: { computed: {
animated () { animated () {
return this.mimetype === 'image/gif' || this.src.endsWith('.gif') return this.mimetype === 'image/gif' || this.src.endsWith('.gif')

View File

@ -30,11 +30,14 @@
&::before { &::before {
content: 'gif'; content: 'gif';
position: absolute; position: absolute;
line-height: 10px;
font-size: 10px;
top: 5px; top: 5px;
left: 5px; left: 5px;
background: rgba(127,127,127,.7); background: rgba(127,127,127,.5);
color: #FFF;
display: block; display: block;
padding: 2px; padding: 2px 4px;
border-radius: 3px; border-radius: 3px;
z-index: 2; z-index: 2;
} }