@dust-tt/sparkle 0.2.215 → 0.2.216

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dust-tt/sparkle",
3
- "version": "0.2.215",
3
+ "version": "0.2.216",
4
4
  "scripts": {
5
5
  "build": "rm -rf dist && rollup -c",
6
6
  "build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true",
@@ -110,7 +110,10 @@ function getLinkForItem(
110
110
 
111
111
  function truncateWithTooltip(text: string, length: number) {
112
112
  return text.length > length ? (
113
- <Tooltip label={text}>{`${text.substring(0, length - 1)}…`}</Tooltip>
113
+ <Tooltip
114
+ label={text}
115
+ position="below"
116
+ >{`${text.substring(0, length - 1)}…`}</Tooltip>
114
117
  ) : (
115
118
  text
116
119
  );