]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17461 Languages menu entry are not rendered properly when the name is long
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Wed, 12 Oct 2022 08:34:59 +0000 (10:34 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 13 Oct 2022 20:03:18 +0000 (20:03 +0000)
server/sonar-docs/src/components/PageLink.tsx
server/sonar-docs/src/components/__tests__/__snapshots__/PageLink-test.tsx.snap
server/sonar-docs/src/layouts/layout.css

index cda51b8d57cf8774ac00ce72749ba85c191929e6..61e547368b8707595ed76f815edcdf6e6dca90f7 100644 (file)
@@ -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>
index 15e3aaf993a4d21dc2c07769273b97569f52afab..173cb10ba759b68d05816041f6f09561ca628afb 100644 (file)
@@ -4,6 +4,7 @@ exports[`should render correctly 1`] = `
 <div>
   <ForwardRef
     className="active"
+    title="Foo"
     to="/foo"
   >
     Foo
index d13c61f7b2dac140f2e4ba60d60ad0432a42d0b6..f3a1fda781b801909e3909e5be7c88349fb7fa50 100644 (file)
@@ -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,