From c944863f3f7f686fbead2fe71cea95800692a356 Mon Sep 17 00:00:00 2001 From: Daniel Schwarz Date: Sat, 4 Feb 2023 18:42:36 -0500 Subject: [PATCH] Changed bookmark symbol from unicode glyph to 'b' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The glyph previously used '🠷' is interpreted with different widths on different terminal emulators (i.e. xterm gets it wrong) This results in visual glitches in the status detail area and especially in the scrollbar when visible. Changing it to a standard ASCII 'b' fixes all these issues. --- toot/tui/timeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 41bc1f8..cd12f6a 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -373,7 +373,7 @@ class StatusDetails(urwid.Pile): yield ("pack", urwid.Text([ ("blue", f"{status.created_at.strftime('%Y-%m-%d %H:%M')} "), - ("red" if status.bookmarked else "gray", "🠷 "), + ("red" if status.bookmarked else "gray", "b "), ("gray", f"⤶ {status.data['replies_count']} "), ("yellow" if status.reblogged else "gray", f"♺ {status.data['reblogs_count']} "), ("yellow" if status.favourited else "gray", f"★ {status.data['favourites_count']}"),