From 89eec15dd90e50c36051eb3f6a2ed2616c513ad8 Mon Sep 17 00:00:00 2001 From: Gusted Date: Tue, 26 Apr 2022 20:31:58 +0000 Subject: [PATCH] By default force vertical tabs on mobile (#19486) * By default force vertical tabs on mobile - While experimenting with using vertical tabs instead of horizontal tabs on gitea for a better mobile experience, I made a recent PR(https://github.com/go-gitea/gitea/pull/19468) in order to see if there was any objections to this new behavior for the repo headers(one of the most annoying horizontal tabs). This PR had no objections and even a user commenting that this change is brilliant. - This PR now improves upon the previous PR by making this the de-facto behavior for all menu's on mobile. The only exemption is the navbar which also uses the menu but caught some layout errors with the changes. * Fix organisation * Fix repo/wiki buttons Co-authored-by: Lunny Xiao --- templates/base/head.tmpl | 2 +- templates/repo/header.tmpl | 2 +- templates/repo/home.tmpl | 2 +- templates/repo/wiki/view.tmpl | 2 +- web_src/less/_base.less | 27 +++++++++++++-------------- web_src/less/_repository.less | 15 --------------- 6 files changed, 17 insertions(+), 33 deletions(-) diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 35157e9b9..f3dcfe842 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -85,7 +85,7 @@ {{template "custom/body_inner_pre" .}} {{if not .PageIsInstall}} - {{end}} -
+
{{if not (or .Repository.IsBeingCreated .Repository.IsBroken)}} {{end}} {{template "repo/sub_menu" .}} -