From 2361de0411528a7eb2b9de11ece07e0e6fba0bcb Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Thu, 19 Dec 2013 04:10:09 +0000 Subject: [PATCH] portals-list: set 'nowrap' on portal table - improves things on mobile --- plugins/portals-list.user.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/plugins/portals-list.user.js b/plugins/portals-list.user.js index e0c8f6a3..05cbec98 100644 --- a/plugins/portals-list.user.js +++ b/plugins/portals-list.user.js @@ -114,7 +114,7 @@ window.plugin.portalslist.displayPL = function() { if (window.plugin.portalslist.getPortals()) { html += window.plugin.portalslist.portalTable(window.plugin.portalslist.sortBy, window.plugin.portalslist.sortOrder,window.plugin.portalslist.filter); } else { - html = '
Nothing to show!
'; + html = '
Nothing to show!
'; }; if(window.useAndroidPanes()) { @@ -161,8 +161,8 @@ window.plugin.portalslist.portalTable = function(sortBy, sortOrder, filter) { var sortAttr = window.plugin.portalslist.portalTableHeaderSortAttr; var html = window.plugin.portalslist.stats(); - html += '' - + '' + html += '
' + + '' + '' + '' + '' @@ -216,7 +216,7 @@ window.plugin.portalslist.portalTable = function(sortBy, sortOrder, filter) { } window.plugin.portalslist.stats = function(sortBy) { - var html = '
#Portal NameLevel
' + var html = '
' + '' + '' + '' @@ -278,12 +278,13 @@ var setup = function() { '#portalslist table tr.res td { background-color: #005684; }' + '#portalslist table tr.enl td { background-color: #017f01; }' + '#portalslist table tr.neutral td { background-color: #000000; }' + - '#portalslist table th { text-align: center;}' + - '#portalslist table td { text-align: center;}' + + '#portalslist table th { text-align: center; }' + + '#portalslist table td { text-align: center; }' + + '#portalslist table.portals td { white-space: nowrap; }' + '#portalslist table td.portalTitle { text-align: left;}' + '#portalslist table th.sortable { cursor:pointer;}' + '#portalslist table th.portalTitle { text-align: left;}' + - '#portalslist table .portalTitle { min-width: 160px !important; max-width: 240px !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }' + + '#portalslist table .portalTitle { min-width: 120px !important; max-width: 240px !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }' + '#portalslist table .apGain { text-align: right !important; }' + '#portalslist .sorted { color:#FFCE00; }' + '#portalslist .filterAll { margin-top: 10px;}' +
All Portals : (click to filter)' + window.plugin.portalslist.listPortals.length + 'Resistance Portals : ' + window.plugin.portalslist.resP +' (' + Math.floor(window.plugin.portalslist.resP/window.plugin.portalslist.listPortals.length*100) + '%)Enlightened Portals : '+ window.plugin.portalslist.enlP +' (' + Math.floor(window.plugin.portalslist.enlP/window.plugin.portalslist.listPortals.length*100) + '%)