If we hit >12 levels of nesting, start cutting padding

This prevents the width of emails in nested view
from shrinking to no width. This addresses #426
diff --git a/site/js/dev/ponymail_assign_vars.js b/site/js/dev/ponymail_assign_vars.js
index 068a563..dbeed72 100644
--- a/site/js/dev/ponymail_assign_vars.js
+++ b/site/js/dev/ponymail_assign_vars.js
@@ -60,6 +60,7 @@
 var pb_refresh = 0
 var treeview_guard = {}
 var mbox_month = null
+var max_nesting = 12
 
 var URL_BASE = pm_config.URLBase ? pm_config.URLBase.replace(/\/+/g, "/") : ""
 
diff --git a/site/js/dev/ponymail_email_displays.js b/site/js/dev/ponymail_email_displays.js
index b440399..76d5699 100644
--- a/site/js/dev/ponymail_email_displays.js
+++ b/site/js/dev/ponymail_email_displays.js
@@ -144,7 +144,18 @@
         }
         // Default theme
         else {
-            thread.setAttribute("class", "reply bs-callout bs-callout-" + cols[parseInt(Math.random() * cols.length - 0.01)])
+            tclass = "reply bs-callout bs-callout-" + cols[parseInt(Math.random() * cols.length - 0.01)]
+            // If we hit max_nesting levels, discard nesting display further down.
+            // Otherwise, we risk squeezing it into oblivion.
+            thread.style.padding = "5px"
+            thread.style.fontFamily = "Hack"
+            
+            if (level >= max_nesting) {
+                tclass = "reply" // No bs-callout if we nest too deep.
+                thread.style.paddingLeft = "0px";  // remove padding, left and right
+                thread.style.paddingRight = "0px";
+            }
+            thread.setAttribute("class", tclass)
             thread.style.background = estyle
             thread.style.marginTop = "30px"
             thread.innerHTML += ' &nbsp; <label class="label label-success" onclick="compose(\'' + json.mid + '\');" style="cursor: pointer; float: right; margin-left: 10px;">Reply</label>'
@@ -156,9 +167,6 @@
             
             
             thread.innerHTML += "<br/>"
-            //thread.style.border = "1px dotted #666"
-            thread.style.padding = "5px"
-            thread.style.fontFamily = "Hack"
             
             var fields = ['From', 'To', 'CC', 'Subject', 'Date']
             for (var i in fields) {