summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-09-03 17:44:23 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-09-03 17:44:23 -0400
commitb88549a91add8ebf1cc0889550d27c1853aea960 (patch)
treebe1187a375ba9384de04b9d233e37f518e66c7ed /components
parent5e8489d21974daf325ba7782ac3b2ccec88518df (diff)
downloadabaddon-portaudio-b88549a91add8ebf1cc0889550d27c1853aea960.tar.gz
abaddon-portaudio-b88549a91add8ebf1cc0889550d27c1853aea960.zip
stop embeds from being big chunguses
Diffstat (limited to 'components')
-rw-r--r--components/chatmessage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp
index 47fd81a..4bb35c2 100644
--- a/components/chatmessage.cpp
+++ b/components/chatmessage.cpp
@@ -191,6 +191,7 @@ void ChatMessageEmbedItem::DoLayout() {
title_label->set_use_markup(true);
title_label->set_markup("<b>" + Glib::Markup::escape_text(m_embed.Title) + "</b>");
title_label->set_halign(Gtk::ALIGN_CENTER);
+ title_label->set_hexpand(false);
m_main->pack_start(*title_label);
}
@@ -201,6 +202,7 @@ void ChatMessageEmbedItem::DoLayout() {
desc_label->set_line_wrap_mode(Pango::WRAP_WORD_CHAR);
desc_label->set_max_width_chars(50);
desc_label->set_halign(Gtk::ALIGN_START);
+ desc_label->set_hexpand(false);
m_main->pack_start(*desc_label);
}
@@ -225,6 +227,10 @@ void ChatMessageEmbedItem::DoLayout() {
style->add_class("embed");
set_margin_bottom(8);
+ set_hexpand(false);
+ m_main->set_hexpand(false);
+ m_main->set_halign(Gtk::ALIGN_START);
+ set_halign(Gtk::ALIGN_START);
add(*m_main);
show_all();