diff --git a/main/data/contact_details_dialog.ui b/main/data/contact_details_dialog.ui index 7ebfaaa5..3ba17746 100644 --- a/main/data/contact_details_dialog.ui +++ b/main/data/contact_details_dialog.ui @@ -36,6 +36,7 @@ 20 12 10 + False True diff --git a/plugins/omemo/data/contact_details_dialog.ui b/plugins/omemo/data/contact_details_dialog.ui index 188bf06e..d9a35e97 100644 --- a/plugins/omemo/data/contact_details_dialog.ui +++ b/plugins/omemo/data/contact_details_dialog.ui @@ -2,7 +2,6 @@ True - False True @@ -37,6 +36,8 @@ True start + 0 + True @@ -114,8 +115,10 @@ True start - right True + 35 + 0 + True diff --git a/plugins/omemo/src/ui/contact_details_dialog.vala b/plugins/omemo/src/ui/contact_details_dialog.vala index b3f8bc45..6394564b 100644 --- a/plugins/omemo/src/ui/contact_details_dialog.vala +++ b/plugins/omemo/src/ui/contact_details_dialog.vala @@ -288,7 +288,7 @@ public class ContactDetailsDialog : Gtk.Dialog { public class FingerprintRow : ListBoxRow { private Image trust_image = new Image() { visible = true, halign = Align.END, icon_size = IconSize.BUTTON }; - private Label fingerprint_label = new Label("") { use_markup=true, justify=Justification.RIGHT, visible=true, halign = Align.START, valign = Align.CENTER, hexpand = false }; + private Label fingerprint_label = new Label("") { use_markup=true, max_width_chars=35, wrap=true, visible=true, halign = Align.START, valign = Align.CENTER, hexpand = false, xalign = 0 }; private Label trust_label = new Label(null) { visible = true, hexpand = true, xalign = 0 }; public Row row; diff --git a/plugins/omemo/src/ui/util.vala b/plugins/omemo/src/ui/util.vala index cf61ed82..0b0c4a9f 100644 --- a/plugins/omemo/src/ui/util.vala +++ b/plugins/omemo/src/ui/util.vala @@ -51,9 +51,8 @@ public static string fingerprint_markup(string s) { b = (uint8) (b * factor); } - if (i % 32 == 0 && i != 0) markup += "\n"; markup += @"$four_chars"; - if (i % 8 == 4 && i % 32 != 28) markup += " "; + if (i % 8 == 4) markup += " "; } return "" + markup + "";