瀏覽代碼

SONAR-17075 Fix language pages menu entry display when text is too long

tags/9.6.0.59041
Philippe Perrin 1 年之前
父節點
當前提交
d93dfacbcf

+ 2
- 0
server/sonar-web/src/main/js/app/styles/components/list-groups.css 查看文件

@@ -76,6 +76,8 @@ a.list-group-item {
.list-group-item-heading {
margin-top: 5px;
margin-bottom: 5px;
text-overflow: ellipsis;
overflow: hidden;
}

.list-group-item-heading:after {

+ 5
- 1
server/sonar-web/src/main/js/apps/documentation/components/MenuItem.tsx 查看文件

@@ -36,12 +36,16 @@ export function MenuItem({ depth = 0, node, splat }: Props) {

const active = testPathAgainstUrl(node.url, splat);
const maxDepth = Math.min(depth, 3);
const title = node.navTitle || node.title;

return (
<Link
className={classNames('list-group-item', { active, [`depth-${maxDepth}`]: depth > 0 })}
key={node.url}
to={'/documentation' + node.url}>
<h3 className="list-group-item-heading">{node.navTitle || node.title}</h3>
<h3 className="list-group-item-heading" title={title}>
{title}
</h3>
</Link>
);
}

Loading…
取消
儲存