diff --git a/src/General/css/style.css b/src/General/css/style.css index e6380c526..50028a15e 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -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; diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index b0c29cf33..b1890f650 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -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