@marcoschwartz/lite-ui 0.26.1 → 0.26.2

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/dist/index.js CHANGED
@@ -6144,11 +6144,7 @@ function useResponsiveChart({
6144
6144
  height = providedHeight || defaultHeight;
6145
6145
  effectiveAspectRatio = width / height;
6146
6146
  }
6147
- const containerStyle = responsive ? {
6148
- width: "100%",
6149
- aspectRatio: `${effectiveAspectRatio}`,
6150
- ...maxHeight !== void 0 && { maxHeight, overflow: "hidden" }
6151
- } : { width, height: "auto" };
6147
+ const containerStyle = responsive ? maxHeight !== void 0 ? { width: "100%", height: maxHeight } : { width: "100%", aspectRatio: `${effectiveAspectRatio}` } : { width, height: "auto" };
6152
6148
  const svgStyle = responsive ? { width: "100%", height: "100%", display: "block" } : {};
6153
6149
  const svgWidth = responsive ? "100%" : width;
6154
6150
  const svgHeight = responsive ? "100%" : height;