Browse Source

fix: the issue of text overflow in the NavSelector component (#2976)

legao 1 year ago
parent
commit
d2624b13a0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      web/app/components/header/nav/nav-selector/index.tsx

+ 3 - 1
web/app/components/header/nav/nav-selector/index.tsx

@@ -77,7 +77,9 @@ const NavSelector = ({ curNav, navs, createText, onCreate, onLoadmore }: INavSel
                         <Indicator />
                       </div>
                     </div>
-                    {nav.name}
+                    <div className='truncate'>
+                      {nav.name}
+                    </div>
                   </div>
                 </Menu.Item>
               ))