]> source.dussan.org Git - gitea.git/commitdiff
fixed the dropdown menu for the top New button to expand to the left (#31273) (#31275)
authorGiteabot <teabot@gitea.io>
Fri, 7 Jun 2024 02:19:00 +0000 (10:19 +0800)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2024 02:19:00 +0000 (04:19 +0200)
Backport #31273 by @kerwin612

before:

![1717660314025](https://github.com/go-gitea/gitea/assets/3371163/17ae7a48-31c5-4c71-b285-f65d9106bf86)

after:

![1717660674763](https://github.com/go-gitea/gitea/assets/3371163/85f847ac-a044-4695-9004-26e6485288c6)

Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
templates/base/head_navbar.tmpl

index 7a3e663c494f05575f3c759c461b0d90ce13dcd2..2b52247303b5f082f738bb2fd144d5e5bb37affb 100644 (file)
                                        <span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
                                        <span class="only-mobile">{{ctx.Locale.Tr "create_new"}}</span>
                                </span>
-                               <div class="menu">
+                               <div class="menu left">
                                        <a class="item" href="{{AppSubUrl}}/repo/create">
                                                {{svg "octicon-plus"}} {{ctx.Locale.Tr "new_repo"}}
                                        </a>