diff --git a/messagegui/messagegui.app.js b/messagegui/messagegui.app.js index 682e474..2f356da 100644 --- a/messagegui/messagegui.app.js +++ b/messagegui/messagegui.app.js @@ -285,14 +285,14 @@ function showMessage(msgid) { if (body) { var w = g.getWidth()-10; - if (g.setFont(bodyFont).stringWidth(body) > w * 2) { + if (false && g.setFont(bodyFont).stringWidth(body) > w * 2) { bodyFont = fontBig; if (settings.fontSize!=1 && g.setFont(bodyFont).stringWidth(body) > w * 3) bodyFont = fontMedium; } if (g.setFont(bodyFont).stringWidth(body) > w) { lines = g.setFont(bodyFont).wrapString(msg.body, w); - var maxLines = Math.floor((g.getHeight()-110) / g.getFontHeight()); + var maxLines = Math.floor((g.getHeight()-75) / g.getFontHeight()); body = (lines.length>maxLines) ? lines.slice(0,maxLines).join("\n")+"..." : lines.join("\n"); } } @@ -304,7 +304,7 @@ function showMessage(msgid) { } var buttons = [ ]; - if (msg.positive) { + if (false && msg.positive) { buttons.push({type:"btn", src:atob("GRSBAAAAAYAAAcAAAeAAAfAAAfAAAfAAAfAAAfAAAfBgAfA4AfAeAfAPgfAD4fAA+fAAP/AAD/AAA/AAAPAAADAAAA=="), cb:()=>{ msg.new = false; cancelReloadTimeout(); // don't auto-reload to clock now @@ -312,7 +312,7 @@ function showMessage(msgid) { checkMessages({clockIfNoMsg:1,clockIfAllRead:1,showMsgIfUnread:1,openMusic:openMusic}); }}); } - if (msg.negative) { + if (false && msg.negative) { if (buttons.length) buttons.push({width:32}); // nasty hack... buttons.push({type:"btn", src:atob("FhaBADAAMeAB78AP/4B/fwP4/h/B/P4D//AH/4AP/AAf4AB/gAP/AB/+AP/8B/P4P4fx/A/v4B//AD94AHjAAMA="), cb:()=>{ msg.new = false;