diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index b3afe3648f..f99e07199e 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -1239,7 +1239,7 @@ i.icon.centerlock {
 
 /* limit width of all direct dropdown menu children */
 /* https://github.com/go-gitea/gitea/pull/10835 */
-.dropdown:not(.selection) > .menu:not(.review-box) > * {
+.dropdown:not(.selection) > .menu:not(.review-box) > *:not(.header) {
     max-width: 300px;
     overflow-x: hidden;
     text-overflow: ellipsis;