diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2022-10-12 10:34:59 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-10-13 20:03:18 +0000 |
commit | 604938c43114902c83638e4ea57707fa23535550 (patch) | |
tree | 256be775728f24e25699f1db1dc175a51cefea31 /server/sonar-docs/src | |
parent | 7586590b46ab25a70d6effee855a65390ba89d9d (diff) | |
download | sonarqube-604938c43114902c83638e4ea57707fa23535550.tar.gz sonarqube-604938c43114902c83638e4ea57707fa23535550.zip |
SONAR-17461 Languages menu entry are not rendered properly when the name is long
Diffstat (limited to 'server/sonar-docs/src')
-rw-r--r-- | server/sonar-docs/src/components/PageLink.tsx | 3 | ||||
-rw-r--r-- | server/sonar-docs/src/components/__tests__/__snapshots__/PageLink-test.tsx.snap | 1 | ||||
-rw-r--r-- | server/sonar-docs/src/layouts/layout.css | 3 |
3 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-docs/src/components/PageLink.tsx b/server/sonar-docs/src/components/PageLink.tsx index cda51b8d57c..61e547368b8 100644 --- a/server/sonar-docs/src/components/PageLink.tsx +++ b/server/sonar-docs/src/components/PageLink.tsx @@ -43,7 +43,8 @@ export default function PageLink({ className, location, node }: Props) { <div> <Link className={classNames(className, { active: location.pathname === PREFIX + url })} - to={url}> + to={url} + title={title}> {title} </Link> </div> diff --git a/server/sonar-docs/src/components/__tests__/__snapshots__/PageLink-test.tsx.snap b/server/sonar-docs/src/components/__tests__/__snapshots__/PageLink-test.tsx.snap index 15e3aaf993a..173cb10ba75 100644 --- a/server/sonar-docs/src/components/__tests__/__snapshots__/PageLink-test.tsx.snap +++ b/server/sonar-docs/src/components/__tests__/__snapshots__/PageLink-test.tsx.snap @@ -4,6 +4,7 @@ exports[`should render correctly 1`] = ` <div> <ForwardRef className="active" + title="Foo" to="/foo" > Foo diff --git a/server/sonar-docs/src/layouts/layout.css b/server/sonar-docs/src/layouts/layout.css index d13c61f7b2d..f3a1fda781b 100644 --- a/server/sonar-docs/src/layouts/layout.css +++ b/server/sonar-docs/src/layouts/layout.css @@ -308,6 +308,9 @@ a.search-result .note { font-size: 14px; line-height: 26px; margin: 0; + text-overflow: ellipsis; + overflow-x: hidden; + white-space: nowrap; } .sub-menu-link:hover, |