瀏覽代碼

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

legao 1 年之前
父節點
當前提交
d2624b13a0
共有 1 個文件被更改,包括 3 次插入1 次删除
  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>
               ))