~sircmpwn/hiprompt-gtk-py

8d6ef1d042ec2731f84245164094e622f4be3f2d — Armin Preiml 1 year, 4 months ago d523367 master
key_box: trim values longer than 50 chars
1 files changed, 4 insertions(+), 1 deletions(-)

M hiprompt_gtk/window.py
M hiprompt_gtk/window.py => hiprompt_gtk/window.py +4 -1
@@ 242,7 242,10 @@ class Window:
                row.pack_start(name, True, True, 0)

                if pair.value is not None and not pair.private:
                    value = Gtk.Label(pair.value, xalign=1.0)
                    pair_value = pair.value
                    if len(pair_value) > 50:
                        pair_value = pair_value[:50] + "..."
                    value = Gtk.Label(pair_value, xalign=1.0)
                    value.get_style_context().add_class("value")
                    row.pack_start(value, True, True, 0)
                elif pair.private: