next-helios-fe 1.8.61 → 1.8.63

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": "next-helios-fe",
3
- "version": "1.8.61",
3
+ "version": "1.8.63",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -185,12 +185,11 @@ export const Tooltip: React.FC<TooltipProps> = ({
185
185
  >
186
186
  {children}
187
187
  {typeof document !== "undefined" &&
188
- visible &&
189
188
  createPortal(
190
189
  <div
191
190
  ref={tooltipRef}
192
191
  className={`absolute z-50 duration-200 transition-opacity ${
193
- visible ? "opacity-100" : "opacity-0 pointer-events-none"
192
+ visible ? "" : "hidden pointer-events-none"
194
193
  } ${options?.enableHover ? "" : "pointer-events-none"}`}
195
194
  style={getTooltipPosition()}
196
195
  >
@@ -205,7 +204,10 @@ export const Tooltip: React.FC<TooltipProps> = ({
205
204
  <div style={getTooltipArrowPosition()}></div>
206
205
  </div>
207
206
  )}
208
- <div className="max-w-96 w-fit px-3 py-1.5 rounded-md bg-black/75 text-sm text-white">
207
+ <div
208
+ className="w-fit px-3 py-1.5 rounded-md bg-black/75 text-sm text-white"
209
+ style={{ maxWidth: "50dvw" }}
210
+ >
209
211
  {content}
210
212
  </div>
211
213
  {position === "left" && (