// still need to wrap in hhtml and div with width // 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 ? "right" : "left") + ": 20px; padding: 2px"); })); }