diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-06-21 12:13:12 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-21 12:13:12 +0200 |
commit | b3fd353723ef4b9a180c363f457e2582ff665ca1 (patch) | |
tree | 527dac2cac246c8ae1bf1b44b690b75f0cc9730d /application/palemoon/base/content/newtab/grid.js | |
parent | 072b81e0a5d4ea4dedc9ae98632a49b7cb4c24ef (diff) | |
download | UXP-b3fd353723ef4b9a180c363f457e2582ff665ca1.tar UXP-b3fd353723ef4b9a180c363f457e2582ff665ca1.tar.gz UXP-b3fd353723ef4b9a180c363f457e2582ff665ca1.tar.lz UXP-b3fd353723ef4b9a180c363f457e2582ff665ca1.tar.xz UXP-b3fd353723ef4b9a180c363f457e2582ff665ca1.zip |
Issue #517 Part 7: Remove enhanced/sponsored links styling and page code
Diffstat (limited to 'application/palemoon/base/content/newtab/grid.js')
-rw-r--r-- | application/palemoon/base/content/newtab/grid.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/application/palemoon/base/content/newtab/grid.js b/application/palemoon/base/content/newtab/grid.js index d060807db..be5a57c4b 100644 --- a/application/palemoon/base/content/newtab/grid.js +++ b/application/palemoon/base/content/newtab/grid.js @@ -9,7 +9,6 @@ */ const GRID_BOTTOM_EXTRA = 7; // title's line-height extends 7px past the margin const GRID_WIDTH_EXTRA = 1; // provide 1px buffer to allow for rounding error -const SPONSORED_TAG_BUFFER = 2; // 2px buffer to clip off top of sponsored tag /** * This singleton represents the grid that contains all sites. @@ -179,18 +178,15 @@ var gGrid = { // Create the site's inner HTML code. site.innerHTML = - '<span class="newtab-sponsored">' + newTabString("sponsored.button") + '</span>' + '<a class="newtab-link">' + ' <span class="newtab-thumbnail placeholder"/>' + ' <span class="newtab-thumbnail thumbnail"/>' + - ' <span class="newtab-thumbnail enhanced-content"/>' + ' <span class="newtab-title"/>' + '</a>' + '<input type="button" title="' + newTabString("pin") + '"' + ' class="newtab-control newtab-control-pin"/>' + '<input type="button" title="' + newTabString("block") + '"' + - ' class="newtab-control newtab-control-block"/>' + - '<span class="newtab-suggested"/>'; + ' class="newtab-control newtab-control-block"/>'; this._siteFragment = document.createDocumentFragment(); this._siteFragment.appendChild(site); @@ -271,6 +267,6 @@ var gGrid = { this._node.style.maxWidth = gGridPrefs.gridColumns * this._cellWidth + GRID_WIDTH_EXTRA + "px"; this._node.style.height = this._computeHeight() + "px"; - this._node.style.maxHeight = this._computeHeight(gridRows) - SPONSORED_TAG_BUFFER + "px"; + this._node.style.maxHeight = this._computeHeight(gridRows) + "px"; } }; |