Skip to content

Commit

Permalink
Fix tooltip wrapping issue (#1914)
Browse files Browse the repository at this point in the history
* Fix tooltip wrapping issue

Related [conversation](https://dust4ai.slack.com/archives/C050A0S2Z7F/p1696245394052339)

* bump
  • Loading branch information
philipperolet authored Oct 2, 2023
1 parent db0615e commit 423f091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sparkle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dust-tt/sparkle",
"version": "0.1.94",
"version": "0.1.95",
"scripts": {
"build": "rm -rf dist && rollup -c",
"build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true",
Expand Down
2 changes: 1 addition & 1 deletion sparkle/src/components/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function Tooltip({

// if tooltip text is too long we need to wrap it
const labelLength = label?.length || 0;
const labelClasses = labelLength > 80 ? "w-[38em]" : "s-whitespace-nowrap";
const labelClasses = labelLength > 80 ? "s-w-[38em]" : "s-whitespace-nowrap";

return (
<div
Expand Down

0 comments on commit 423f091

Please sign in to comment.