From 2396f34e7a9615edc3969d6f5aa0be218a3e29f9 Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Tue, 19 Feb 2013 08:50:28 +0100 Subject: [PATCH] fix text wrapping style issues in player tracker (fixes #212) --- plugins/player-tracker.user.js | 5 +++-- style.css | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/player-tracker.user.js b/plugins/player-tracker.user.js index fcfd0671..56eba212 100644 --- a/plugins/player-tracker.user.js +++ b/plugins/player-tracker.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @id iitc-plugin-player-tracker@breunigs // @name iitc: player tracker -// @version 0.1 +// @version 0.2 // @namespace https://github.com/breunigs/ingress-intel-total-conversion // @updateURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/player-tracker.user.js // @downloadURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/player-tracker.user.js @@ -208,11 +208,12 @@ window.plugin.playerTracker.drawData = function() { + ago(last.time, now) + ' minutes ago\n' + last.name; // show previous data in tooltip + var minsAgo = '\tmins ago\t'; if(evtsLength >= 2) title += '\n \nprevious locations:\n'; for(var i = evtsLength - 2; i >= 0 && i >= evtsLength - 10; i--) { var ev = playerData.events[i]; - title += ago(ev.time, now) + '\tmins ago\t' + ev.name + '\n'; + title += ago(ev.time, now) + minsAgo + ev.name + '\n'; } // marker itself diff --git a/style.css b/style.css index 551d00ef..5eb7d5b1 100644 --- a/style.css +++ b/style.css @@ -647,6 +647,7 @@ aside + aside { td { padding: 0; + vertical-align: top; } td + td {