Permalink
Browse files

Better view for error count using a table

  • Loading branch information...
Marc Lagrange authored and pusewicz committed Feb 15, 2011
1 parent ce749c4 commit ba8be04bdb3bb13ee3b29fc7efc380de9265efe7
Showing with 5 additions and 6 deletions.
  1. +4 −5 widgets/hoptoad/hoptoad.css
  2. +1 −1 widgets/hoptoad/hoptoad.js
@@ -6,21 +6,20 @@ div.hoptoad .content img {
height: 32px;
}
-div.hoptoad span.app_name {
+div.hoptoad td.app_name {
font-size: 14pt;
padding-left: 1em;
+ min-width: 300px;
}
-div.hoptoad span.no_app_errors {
+div.hoptoad td.no_app_errors {
font-weight: bold;
color: green;
- padding-left: 10em;
font-size: 14pt;
}
-div.hoptoad span.app_errors {
+div.hoptoad td.app_errors {
color: red;
font-weight: bold;
- padding-left: 10em;
font-size: 14pt;
}
@@ -31,7 +31,7 @@ var Hoptoad = Class.create(Widget, {
var class_errors = "app_errors";
}
var app_errors = new Element('div', { className: 'app_errors' }).update(
- '<span class="app_name">' + message.name + '</span>: <span class="' + class_errors + '">' + message.errors + '</span>'
+ '<table><tr><td class="app_name">' + message.name + '</td><td class="' + class_errors + '">' + message.errors + '</td></tr></table>'
);
cont.insert(app_errors);
cont.insert(new Element('hr' ));

0 comments on commit ba8be04

Please sign in to comment.