summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-04-23 16:56:33 +0000
committerGitHub <noreply@github.com>2022-04-23 18:56:33 +0200
commit1f0541780538d03108fc741399480851759275bd (patch)
tree8764ccbf655a6f9631d94be94620a1e06dec32fc /templates
parent9550e5a23e9f8581cc13f54b336307ee02d430cc (diff)
downloadgitea-1f0541780538d03108fc741399480851759275bd.tar.gz
gitea-1f0541780538d03108fc741399480851759275bd.zip
Use horizontal tabs for repo header on mobile (#19468)
* 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. * Fix lint
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/header.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 83ad79e12d..198b05b4ba 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -144,7 +144,7 @@
</div><!-- end grid -->
</div><!-- end container -->
{{end}}
- <div class="ui tabs container">
+ <div class="ui tabs container repo-header-container">
{{if not (or .Repository.IsBeingCreated .Repository.IsBroken)}}
<div class="ui tabular stackable menu navbar">
{{if .Permission.CanRead $.UnitTypeCode}}