From 7e7683d3a2dd495104aa84ff6361ab99de3f9ba4 Mon Sep 17 00:00:00 2001 From: Gusted Date: Fri, 22 Apr 2022 23:09:18 +0200 Subject: [PATCH 1/2] Use horizontal tabs for repo header on mobile - The current behavior of the repo header on mobile is to display them vertically column-by-column. I've only experience annoyance due to this while trying to visit gitea instanced on mobile. This commit changes this behavior to use horizontal tabs, it uses less tabs and doesn't bloat 60% of your mobile screen with the repo headers. - A small fix added in this commit is to give some space around the repo buttons, current behavior is that they are too "close" to the repo title. --- templates/repo/header.tmpl | 2 +- web_src/less/_repository.less | 27 ++++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 83ad79e12d59b..198b05b4ba561 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -144,7 +144,7 @@ {{end}} -
+
{{if not (or .Repository.IsBeingCreated .Repository.IsBroken)}}