diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-02 01:02:23 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-02 01:02:23 -0500 |
commit | 5cf2b7c2db104df5bc2897d68fe4bc1c26957aa5 (patch) | |
tree | d614e2bd57f854b555769c5fa2ebf1ea87a681f2 /components | |
parent | b863c3740b0c18c5d66659ae3f6be7960f413abd (diff) | |
download | abaddon-portaudio-5cf2b7c2db104df5bc2897d68fe4bc1c26957aa5.tar.gz abaddon-portaudio-5cf2b7c2db104df5bc2897d68fe4bc1c26957aa5.zip |
format timestamps and place them on the right (#17)
Diffstat (limited to 'components')
-rw-r--r-- | components/chatmessage.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp index 44f172e..58b8197 100644 --- a/components/chatmessage.cpp +++ b/components/chatmessage.cpp @@ -1080,7 +1080,10 @@ ChatMessageHeader::ChatMessageHeader(const Message *data) { else if (data->WebhookID.has_value()) m_extra->set_markup("<b>Webhook</b>"); - m_timestamp->set_text(data->Timestamp); + m_timestamp->set_text(data->ID.GetLocalTimestamp()); + m_timestamp->set_hexpand(true); + m_timestamp->set_halign(Gtk::ALIGN_END); + m_timestamp->set_ellipsize(Pango::ELLIPSIZE_END); m_timestamp->set_opacity(0.5); m_timestamp->set_single_line_mode(true); m_timestamp->set_margin_start(12); @@ -1090,6 +1093,7 @@ ChatMessageHeader::ChatMessageHeader(const Message *data) { m_main_box->set_vexpand(true); m_main_box->set_can_focus(true); + m_meta_box->set_hexpand(true); m_meta_box->set_can_focus(false); m_content_box->set_can_focus(false); |