fix PDF in gallery
This commit is contained in:
parent
6abb88a11f
commit
cabbd58918
@ -1405,7 +1405,7 @@ div.boardTitle {
|
||||
padding-right: 7px;
|
||||
top: 5px;
|
||||
}
|
||||
.gal-pdf .gal-buttons {
|
||||
:root.gal-pdf .gal-buttons {
|
||||
top: 40px;
|
||||
background: rgba(0,0,0,0.6) !important;
|
||||
border-radius: 3px;
|
||||
|
||||
@ -134,7 +134,7 @@ Gallery =
|
||||
elType = 'img'
|
||||
elType = 'video' if /\.webm$/.test(@href)
|
||||
elType = 'iframe' if /\.pdf$/.test(@href)
|
||||
$[if elType is 'iframe' then 'addClass' else 'rmClass'] nodes.el, 'gal-pdf'
|
||||
$[if elType is 'iframe' then 'addClass' else 'rmClass'] doc, 'gal-pdf'
|
||||
file = $.el elType,
|
||||
src: name.href = @href
|
||||
title: name.download = name.textContent = @title
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user