mirror of
https://github.com/penpot/penpot.git
synced 2026-11-26 21:00:32 +00:00
* 🐛 Show the full library name in a tooltip when it is cut Long library names are cut with an ellipsis in the Libraries modal and in the Assets panel, with no way to read the full name, so libraries that share a long prefix cannot be told apart. A new truncated-text* component shows the text and, only while CSS cuts it, wraps it in the DS tooltip with the full text. A ResizeObserver checks the size again when the box changes; it follows the node that the tooltip mounts, so the tooltip also goes away when the text fits again. The Libraries modal (new and legacy layouts) and the library titles in the Assets panel use it. Closes #13223 AI-assisted-by: claude-opus-5-5 * 🐛 Keep a cut library name visible inside its tooltip The DS tooltip trigger sets line-height: 0. A cut name inside it inherited that value and collapsed, so the Assets panel hid the name of a long shared library. The trigger of truncated-text* now inherits the line height of its parent through an inline style; a class would tie with the trigger class and depend on the order of the stylesheets. AI-assisted-by: claude-opus-5-5