Switch from Entry to TextView for multiline, paste support for attachments
This commit is contained in:
@@ -104,9 +104,11 @@ private class TranscriptDrawingArea : Widget
|
||||
}
|
||||
|
||||
// Text Bubble
|
||||
var text_bubble = new TextBubbleLayout(message, this, max_width);
|
||||
text_bubble.vertical_padding = (last_sender == message.sender) ? 0.0f : 10.0f;
|
||||
items.add(text_bubble);
|
||||
if (message.text.length > 0 && !message.is_attachment_marker) {
|
||||
var text_bubble = new TextBubbleLayout(message, this, max_width);
|
||||
text_bubble.vertical_padding = (last_sender == message.sender) ? 0.0f : 10.0f;
|
||||
items.add(text_bubble);
|
||||
}
|
||||
|
||||
// Check for attachments. For each one, add an image layout bubble
|
||||
foreach (var attachment in message.attachments) {
|
||||
|
||||
Reference in New Issue
Block a user