wtails 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Wtails
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -162,5 +162,7 @@ pre {
162
162
  margin: 0;
163
163
  padding: 0;
164
164
  font-family: "Monaco", "Consolas", monospace;
165
- }
166
165
 
166
+ word-wrap: break-word;
167
+ white-space: pre-wrap;
168
+ }
@@ -20,10 +20,16 @@ var Wtails = {
20
20
  // Insert a new line
21
21
  curr.append(line);
22
22
 
23
+ // Truncate old lines
24
+ var children = curr.children();
25
+ if (300 < children.length) {
26
+ children.slice(0, children.length - 300).remove();
27
+ }
28
+
23
29
  // Scroll to bottom of the page
24
30
  curr.parent().scrollTop(curr.height());
25
31
  });
26
32
  };
27
33
  });
28
- },
34
+ }
29
35
  };
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wtails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Naoyuki HIRAYAMA