From 0489328a0a615d44695a89791b66d5a51b01e682 Mon Sep 17 00:00:00 2001 From: Alexander Leonhardt Date: Mon, 17 Aug 2026 08:35:40 +0200 Subject: fix: Updated the mobile UI slightly. --- ui-shared.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index d8d5d76..cea9414 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -944,8 +944,15 @@ void cgit_add_clone_urls(void (*fn)(const char *)) static int print_branch_option(const struct reference *ref, void *cb_data) { + char buffer[200]; char *name = (char *)ref->name; - html_option(name, name, ctx.qry.head); + if (strlen(name)>=190) { + html_option(name, name, ctx.qry.head); + } + else { + snprintf(buffer, 199, "⎇%s", name); + html_option(name, buffer, ctx.qry.head); + } return 0; } -- cgit