From b0383b481361310ce395fa4c5176132b7b800b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Bu=CC=88nemann?= Date: Sun, 1 Mar 2020 16:19:17 +0100 Subject: [PATCH] Fix display of IPv6 addresses in activity panes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix wrong width of ip-address field, causing it to be displayed as "…", when exceeding 125px * Add tooltip with full IP address on hover, if the address is longer than 20 characters (maximum length that can be shown in 125px) --- data/interfaces/default/css/tautulli.css | 3 ++- data/interfaces/default/current_activity_instance.html | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/data/interfaces/default/css/tautulli.css b/data/interfaces/default/css/tautulli.css index dad492e4..ebdb6678 100644 --- a/data/interfaces/default/css/tautulli.css +++ b/data/interfaces/default/css/tautulli.css @@ -973,7 +973,7 @@ a .users-poster-face:hover { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - max-width: 140px; + max-width: 125px; } .dashboard-activity-info-time { position: absolute; @@ -3102,6 +3102,7 @@ div.dataTables_info { border-left-color: #fff; } .tooltip-inner { + max-width: 250px; color: #000; background: #fff; border: 0; diff --git a/data/interfaces/default/current_activity_instance.html b/data/interfaces/default/current_activity_instance.html index c69b295e..b9457343 100644 --- a/data/interfaces/default/current_activity_instance.html +++ b/data/interfaces/default/current_activity_instance.html @@ -301,7 +301,11 @@ DOCUMENTATION :: END % endif ${data['location'].upper()}: % if data['ip_address'] != 'N/A': - ${data['ip_address']} + % if len(data['ip_address']) > 20: + ${data['ip_address']} + % else: + ${data['ip_address']} + % endif % if data['relayed']: % else: