summaryrefslogtreecommitdiffstats
path: root/application/basilisk/base/content/newtab/grid.js
diff options
context:
space:
mode:
authoradeshkp <adeshkp@users.noreply.github.com>2019-05-25 11:19:38 -0400
committeradeshkp <adeshkp@users.noreply.github.com>2019-05-25 11:19:38 -0400
commit1eca3c3a6306e33efe3c18ce60e91d2a71095c56 (patch)
tree0b6b13a2a36652702da9ec571c30e16670137050 /application/basilisk/base/content/newtab/grid.js
parent915ffc660053cc48153c00dec66b913517dba794 (diff)
downloadUXP-1eca3c3a6306e33efe3c18ce60e91d2a71095c56.tar
UXP-1eca3c3a6306e33efe3c18ce60e91d2a71095c56.tar.gz
UXP-1eca3c3a6306e33efe3c18ce60e91d2a71095c56.tar.lz
UXP-1eca3c3a6306e33efe3c18ce60e91d2a71095c56.tar.xz
UXP-1eca3c3a6306e33efe3c18ce60e91d2a71095c56.zip
Issue #246 - Revert "Revert "Remove unwanted newtab page code""
Page thumbnails hiccups seem to have resolved, so it can be landed again. This reverts commit 51792b31a36b9539fdd1b4b85abe486c1652b6c4. Conflicts: application/basilisk/modules/DirectoryLinksProvider.jsm
Diffstat (limited to 'application/basilisk/base/content/newtab/grid.js')
-rw-r--r--application/basilisk/base/content/newtab/grid.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/application/basilisk/base/content/newtab/grid.js b/application/basilisk/base/content/newtab/grid.js
index b6f98fa17..415a25933 100644
--- a/application/basilisk/base/content/newtab/grid.js
+++ b/application/basilisk/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.
@@ -182,18 +181,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);
@@ -274,6 +270,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";
}
};