X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/dbe0f181b36d25deb786ba3c8a3b30c77c2cbbfc..a5dd312cf5fe5edc96f5e69f35572b3f1154b699:/Cydia.app/package.js?ds=sidebyside diff --git a/Cydia.app/package.js b/Cydia.app/package.js index e409aa98..1a8fc92b 100644 --- a/Cydia.app/package.js +++ b/Cydia.app/package.js @@ -134,16 +134,19 @@ $(function () { nid.html(id); var width = nid.width(); - if (width > 240) { - var spacing = (240.0 - nid.width()) / (id.length - 1) + "px"; + var max = 238.0; + if (width > max) { + var spacing = (max - nid.width()) / (id.length - 1) + "px"; nid.css("letter-spacing", spacing); } var section = package.section; if (section == null) $(".section").remove(); - else - $("#section").html(package.section); + else { + $("#section-src").src("cydia://section-icon/" + encodeURIComponent(section)); + $("#section").html(section); + } var size = package.size; if (size == 0)