catchup-library-web 1.9.1 → 1.9.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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/images/BaseImage.tsx +2 -4
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -88,8 +88,8 @@ const BaseImage = forwardRef<HTMLImageElement, IBaseImageProps>(
|
|
|
88
88
|
onClick={handleOnClick}
|
|
89
89
|
>
|
|
90
90
|
<img
|
|
91
|
-
ref={ref}
|
|
92
|
-
className={`w-full ${borderRadius || ""}`}
|
|
91
|
+
ref={ref}
|
|
92
|
+
className={`w-full h-full object-contain ${borderRadius || ""}`}
|
|
93
93
|
src={src}
|
|
94
94
|
alt={alt}
|
|
95
95
|
onLoad={onLoad}
|
|
@@ -104,10 +104,8 @@ const BaseImage = forwardRef<HTMLImageElement, IBaseImageProps>(
|
|
|
104
104
|
}
|
|
105
105
|
);
|
|
106
106
|
|
|
107
|
-
// Add display name for better debugging
|
|
108
107
|
BaseImage.displayName = "BaseImage";
|
|
109
108
|
|
|
110
|
-
// Update your interface to remove the ref prop since it's now handled by forwardRef
|
|
111
109
|
interface IBaseImageProps {
|
|
112
110
|
size?:
|
|
113
111
|
| "xsmall"
|