From 2d3e935a34652b68587d9f8c6abcb89405824dbe Mon Sep 17 00:00:00 2001 From: Brandon Date: Wed, 5 Mar 2014 13:36:10 -0800 Subject: [PATCH] Minor fix for /f/ Highlighted posts had an overlap with the highlighting and the fileInfo. --- LICENSE | 2 +- builds/appchan-x.user.js | 8 +++++--- builds/crx/script.js | 8 +++++--- src/Miscellaneous/Flash.coffee | 4 +++- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/LICENSE b/LICENSE index 61c706ed8..2b1f344fa 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* appchan x - Version 2.8.13 - 2014-02-23 +* appchan x - Version 2.8.13 - 2014-03-05 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index ed4aed3f2..719a20bfd 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -24,7 +24,7 @@ // ==/UserScript== /* -* appchan x - Version 2.8.13 - 2014-02-23 +* appchan x - Version 2.8.13 - 2014-03-05 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -14752,11 +14752,12 @@ } }, initReady: function() { - var nav, sauceLink, swfName; + var fileFix, nav, sauceLink, swfName; $.globalEval('SWFEmbed.init()'); if (g.VIEW !== 'thread') { return; } + fileFix = $('.fileInfo'); swfName = $('.fileText > a'); nav = $('.navLinks'); sauceLink = $.el('a', { @@ -14764,7 +14765,8 @@ href: "http://eye.swfchan.com/search/?q=" + swfName.textContent }); $.rmAll(nav); - return $.add(nav, [$.tn('['), sauceLink, $.tn(']')]); + $.add(nav, [$.tn('['), sauceLink, $.tn(']')]); + return fileFix.style.paddingLeft = '5px'; } }; diff --git a/builds/crx/script.js b/builds/crx/script.js index 3e99c3aa2..6ed1d93fc 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* appchan x - Version 2.8.13 - 2014-02-23 +* appchan x - Version 2.8.13 - 2014-03-05 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -14755,11 +14755,12 @@ } }, initReady: function() { - var nav, sauceLink, swfName; + var fileFix, nav, sauceLink, swfName; $.globalEval('SWFEmbed.init()'); if (g.VIEW !== 'thread') { return; } + fileFix = $('.fileInfo'); swfName = $('.fileText > a'); nav = $('.navLinks'); sauceLink = $.el('a', { @@ -14767,7 +14768,8 @@ href: "http://eye.swfchan.com/search/?q=" + swfName.textContent }); $.rmAll(nav); - return $.add(nav, [$.tn('['), sauceLink, $.tn(']')]); + $.add(nav, [$.tn('['), sauceLink, $.tn(']')]); + return fileFix.style.paddingLeft = '5px'; } }; diff --git a/src/Miscellaneous/Flash.coffee b/src/Miscellaneous/Flash.coffee index e4fa4f9ba..30396ae2d 100644 --- a/src/Miscellaneous/Flash.coffee +++ b/src/Miscellaneous/Flash.coffee @@ -8,10 +8,12 @@ Flash = return unless g.VIEW is 'thread' + fileFix = $ '.fileInfo' swfName = $ '.fileText > a' nav = $ '.navLinks' sauceLink = $.el 'a', textContent: 'Check Sauce on SWFCHAN' href: "http://eye.swfchan.com/search/?q=#{swfName.textContent}" $.rmAll nav - $.add nav, [$.tn('['), sauceLink, $.tn(']')] \ No newline at end of file + $.add nav, [$.tn('['), sauceLink, $.tn(']')] + fileFix.style.paddingLeft = '5px' \ No newline at end of file