repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 3ec19bc013bb03ca61a26c05a6aa148785ea3576:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 3ec19bc013bb03ca61a26c05a6aa148785ea3576
Author: James Baicoianu 
Date:   Sun Jul 30 09:10:53 2017 -0700

    Added max width and padding

diff --git a/scripts/janusparagraph.js b/scripts/janusparagraph.js
index e15832875defe55c66ce9803e846e31a6865303a..
index ..71f581ff7590dfd39e2e66534e4b40b943d617ef 100644
--- a/scripts/janusparagraph.js
+++ b/scripts/janusparagraph.js
@@ -39,9 +39,12 @@ elation.require(['janusweb.janusbase'], function() {
       this.canvas.height = 512;
       var text_col = '#' + this.text_col.getHexString(),
           back_col = 'rgba(' + (this.back_col.r * 255) + ', ' + (this.back_col.g * 255) + ', ' + (this.back_col.b * 255) + ', ' + this.back_alpha + ')';
-      var basestyle = 'font-size: ' + this.font_size + 'px;' +
+      var basestyle = 'font-family: sans-serif;' +
+                      'font-size: ' + this.font_size + 'px;' +
                       'color: ' + text_col + ';' +
-                      'background: ' + back_col + ';';
+                      'background: ' + back_col + ';' +
+                      'max-width: 502px;' +
+                      'padding: 5px;';

       // We need to sanitize our HTML in case someone provides us with malformed markup.
       // We use SVG to render the mark-up, and since SVG is XML it means we need well-formed data

-----END OF PAGE-----