diff --git a/4chan_x.user.js b/4chan_x.user.js index a94e50c92..15edaec6a 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2899,7 +2899,7 @@ }, mouseover: function() { ui.el = $.el('img', { - id: 'iHover', + id: 'ihover', src: this.parentNode.href }); return $.add(d.body, ui.el); @@ -3272,12 +3272,13 @@ width: 100%;\ }\ \ - #qp, #iHover {\ + #qp, #ihover {\ position: fixed;\ }\ \ - #iHover {\ + #ihover {\ max-height: 100%;\ + max-width: 75%;\ }\ \ #navlinks {\ diff --git a/changelog b/changelog index d9a41b46f..42e956a24 100644 --- a/changelog +++ b/changelog @@ -5,6 +5,7 @@ master the report button can open multiple popups again add omploader to the list of optional flavors (http://ompldr.org/upload?url1=) update archive redirections, add /lit/ and /u/ + fit horizontally for Image Hover 2.23.7 - mayhem diff --git a/script.coffee b/script.coffee index 85ced57bb..088f71d3d 100644 --- a/script.coffee +++ b/script.coffee @@ -2255,7 +2255,7 @@ imgHover = $.on thumb, 'mouseout', ui.hoverend mouseover: -> ui.el = $.el 'img' - id: 'iHover' + id: 'ihover' src: @parentNode.href $.add d.body, ui.el @@ -2624,12 +2624,13 @@ Main = width: 100%; } - #qp, #iHover { + #qp, #ihover { position: fixed; } - #iHover { + #ihover { max-height: 100%; + max-width: 75%; } #navlinks {