From 8de33f4a4cc1543d973b28ee05fd5670d453736e Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 19 Jun 2016 23:37:17 +0800 Subject: Use CSS class for query --- static/mywatch.css | 3 ++- static/mywatch.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/mywatch.css b/static/mywatch.css index 78993e9..354c03a 100644 --- a/static/mywatch.css +++ b/static/mywatch.css @@ -1,3 +1,4 @@ #serverList li { display: inline-block; } -table#processList td { white-space: nowrap; } table th { text-align: center; } +table#processList td { white-space: nowrap; } +table#processList td.mywatch-query { white-space: pre-wrap; } diff --git a/static/mywatch.js b/static/mywatch.js index 02d0bf6..d648764 100644 --- a/static/mywatch.js +++ b/static/mywatch.js @@ -35,7 +35,7 @@ $(function() { var td = $(''); td.text(p[c]); if ('info' === c) { - td.css('white-space', 'pre-wrap'); + td.addClass('mywatch-query'); } else if ('time' === c) { td.css('text-align', 'right'); } else if ('id' === c) { -- cgit v1.2.3