A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(AccordionNav): Set `text-trancate` for link content
haitaoo71d439cca009
diff --git a/ui/src/components/AccordionNav/index.tsx b/ui/src/components/AccordionNav/index.tsxindex 7b63cd50..008054de 100644--- a/ui/src/components/AccordionNav/index.tsx+++ b/ui/src/components/AccordionNav/index.tsx@@ -20,7 +20,7 @@ function MenuNode({const href = isLeaf ? `${path}${menu.name}` : '#';return (- <Nav.Item key={menu.name}>+ <Nav.Item key={menu.name} className="w-100"><Nav.LinkeventKey={menu.name}as={isLeaf ? 'a' : 'button'}@@ -32,7 +32,7 @@ function MenuNode({'text-nowrap d-flex flex-nowrap align-items-center w-100',{ expanding, 'link-dark': activeKey !== menu.name },)}>- <span className="me-auto">+ <span className="me-auto text-truncate">{menu.displayName ? menu.displayName : t(menu.name)}</span>{menu.badgeContent ? (