From 5b104a55331a5774140a7d35ab363a59a8aec9c8 Mon Sep 17 00:00:00 2001
From: Giteabot <teabot@gitea.io>
Date: Sun, 24 Dec 2023 22:44:03 +0800
Subject: [PATCH] Fix flex container width (#28603) (#28605)

Backport #28603 by wxiaoguang

Fix #28489

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
---
 web_src/css/modules/flexcontainer.css | 1 +
 1 file changed, 1 insertion(+)

diff --git a/web_src/css/modules/flexcontainer.css b/web_src/css/modules/flexcontainer.css
index 1721f14b2c..0b559f1e7d 100644
--- a/web_src/css/modules/flexcontainer.css
+++ b/web_src/css/modules/flexcontainer.css
@@ -11,6 +11,7 @@
 
 .flex-container-main {
   flex: 1;
+  min-width: 0; /* make the "text truncate" work, otherwise the flex axis is not limited and the text just overflows */
 }
 
 @media (max-width: 767.98px) {