aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2016-06-19 23:37:17 +0800
committerIgor Pashev <pashev.igor@gmail.com>2016-06-19 23:37:17 +0800
commit8de33f4a4cc1543d973b28ee05fd5670d453736e (patch)
tree9dfd26289f4006f3614fceebb62b4959e16447b4
parent5e2c524cef2411ef1bc0b070c63c61c07ee64e16 (diff)
downloadmywatch-8de33f4a4cc1543d973b28ee05fd5670d453736e.tar.gz
Use CSS class for query
-rw-r--r--static/mywatch.css3
-rw-r--r--static/mywatch.js2
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>');
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) {