diff options
| author | Alexander Leonhardt <equinox.salexander@gmail.com> | |
|---|---|---|
| 2026-08-17 08:35:40 +0200 | ||
| committer | Alexander Leonhardt <equinox.salexander@gmail.com> | |
| 2026-08-17 08:35:40 +0200 | ||
| commit | 0489328a0a615d44695a89791b66d5a51b01e682 (patch) | |
| tree | 3fc0b8c8764dbcefa5800699a4f7e7b3503ddefc /ui-shared.c | |
| parent | 68a4efbe21a1c4c9b0715fa78c83012df8138d9e (diff) | |
| download | cgit-0489328a0a615d44695a89791b66d5a51b01e682.tar.gz cgit-0489328a0a615d44695a89791b66d5a51b01e682.tar.bz2 cgit-0489328a0a615d44695a89791b66d5a51b01e682.zip | |
fix: Updated the mobile UI slightly.
Diffstat (limited to 'ui-shared.c')
| -rw-r--r-- | ui-shared.c | 9 |
1 files changed, 8 insertions, 1 deletions
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; } |