From b88549a91add8ebf1cc0889550d27c1853aea960 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 3 Sep 2020 17:44:23 -0400 Subject: stop embeds from being big chunguses --- components/chatmessage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'components/chatmessage.cpp') 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("" + Glib::Markup::escape_text(m_embed.Title) + ""); 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(); -- cgit v1.2.3