From 4b2c1fb17fcb57093066d32d75a474e982ff86a2 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <p.gawron@atcomp.pl> Date: Thu, 19 Sep 2024 11:45:17 +0200 Subject: [PATCH] add ... in case the license name is too long --- .../ProjectInfoDrawer/ProjectInfoDrawer.component.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/Map/Drawer/ProjectInfoDrawer/ProjectInfoDrawer.component.tsx b/src/components/Map/Drawer/ProjectInfoDrawer/ProjectInfoDrawer.component.tsx index 9bf8267c..3d92366e 100644 --- a/src/components/Map/Drawer/ProjectInfoDrawer/ProjectInfoDrawer.component.tsx +++ b/src/components/Map/Drawer/ProjectInfoDrawer/ProjectInfoDrawer.component.tsx @@ -90,8 +90,14 @@ export const ProjectInfoDrawer = (): JSX.Element => { )} {licenseExists && ( <li className="mt-2 text-hyperlink-blue"> - <button type="button" onClick={onLicenseClick} className="text-base font-semibold"> - License: {licenseName} + <span className="text-black">License: </span> + <button + type="button" + onClick={onLicenseClick} + className="truncate text-base font-semibold" + title={licenseName} + > + {licenseName} </button> </li> )} -- GitLab