From b81c01305714ceca818ccb91d19dada6469e658c Mon Sep 17 00:00:00 2001 From: sebastian-sauer Date: Fri, 14 Jul 2023 03:54:20 +0200 Subject: [PATCH] Don't stack PR tab menu on small screens (#25789) the stacking takes up screen space - display the tabs as the navigation bar. github uses the same layout. Screenshots (left before, right after): ![image](https://github.com/go-gitea/gitea/assets/1135157/d7e2aaec-c67b-403d-8d56-d4c824b04eed) ![image](https://github.com/go-gitea/gitea/assets/1135157/9e150881-c265-4074-afd7-407bb52e1934) Large screen: ![image](https://github.com/go-gitea/gitea/assets/1135157/d5cbdaa3-2962-4c4f-9595-5938981ff99e) --- templates/repo/pulls/tab_menu.tmpl | 45 ++++++++++++++++-------------- web_src/css/repo.css | 9 +++++- 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/templates/repo/pulls/tab_menu.tmpl b/templates/repo/pulls/tab_menu.tmpl index c91d09d9e1..fe1d4e4de0 100644 --- a/templates/repo/pulls/tab_menu.tmpl +++ b/templates/repo/pulls/tab_menu.tmpl @@ -1,23 +1,26 @@ -