From 21601449d12ce20f9a72836995150eba772eb58b Mon Sep 17 00:00:00 2001 From: Alexander Leonhardt Date: Sat, 15 Aug 2026 19:27:30 +0200 Subject: feat: Updated the generated html code and css code to be more mobile friendly even on small devices. --- ui-shared.c | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index 9ee2e5b..9a33806 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -1020,22 +1020,8 @@ static void print_header(void) html(""); if (ctx.repo) { cgit_index_link("index", NULL, NULL, NULL, NULL, 0, 1); - html(" > "); + html(" ❧ "); cgit_summary_link(ctx.repo->name, NULL, NULL, NULL); - if (ctx.env.authenticated) { - html(""); - html("
\n"); - cgit_add_hidden_formfields(0, 1, ctx.qry.page); - html(" "); - html(""); - html("
"); - } } else { html(""); html_txt(ctx.cfg.root_title); @@ -1043,10 +1029,10 @@ static void print_header(void) } html("\n"); - html(""); + html(""); if (ctx.repo) { html_txt(ctx.repo->desc); - html(""); + html(""); if (ctx.repo->owner_filter) { cgit_open_filter(ctx.repo->owner_filter); html_txt(ctx.repo->owner); @@ -1054,11 +1040,28 @@ static void print_header(void) } else { html_txt(ctx.repo->owner); } + html(""); + if (ctx.env.authenticated) { + html(""); + html("
\n"); + cgit_add_hidden_formfields(0, 1, ctx.qry.page); + html(" "); + html(""); + html("
"); + } + html(""); + } else { if (ctx.cfg.root_desc) html_txt(ctx.cfg.root_desc); } - html("\n"); + html("\n"); } void cgit_print_pageheader(void) -- cgit