// use inside of jAutoWidthHTMLLabel
// pairs: (HTML text, false=left/true=right)
sS htmlForJLabel_chatConvo(LPair dialog) {
ret lines(mapPairsToList(dialog, (content, right) -> {
S color = right ? "#9999FF" : "#99FF99";
ret div(span(content, style := "background: \*color*/"),
style := "margin-bottom: 5px; margin-" + (right ? "left" : "right") + ": 20px" + (right ? "; text-align: right" : ""));
}));
}