@xsolla/xui-image-thumbnail 0.138.0 → 0.138.1-pr235.1776777591
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/native/index.js +5 -2
- package/native/index.js.map +1 -1
- package/native/index.mjs +4 -1
- package/native/index.mjs.map +1 -1
- package/package.json +3 -3
- package/web/index.js +5 -2
- package/web/index.js.map +1 -1
- package/web/index.mjs +4 -1
- package/web/index.mjs.map +1 -1
package/native/index.js
CHANGED
|
@@ -5395,6 +5395,9 @@ var LinearGradient2 = ({
|
|
|
5395
5395
|
] });
|
|
5396
5396
|
};
|
|
5397
5397
|
|
|
5398
|
+
// ../primitives-native/src/index.tsx
|
|
5399
|
+
var isWeb = false;
|
|
5400
|
+
|
|
5398
5401
|
// src/ImageThumbnail.tsx
|
|
5399
5402
|
var import_xui_core = require("@xsolla/xui-core");
|
|
5400
5403
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
@@ -5430,7 +5433,7 @@ var ImageThumbnail = ({
|
|
|
5430
5433
|
const { theme } = (0, import_xui_core.useResolvedTheme)({ themeMode, themeProductContext });
|
|
5431
5434
|
const aspectRatio = ratio === "custom" ? customRatio : ratioMap[ratio];
|
|
5432
5435
|
const wrapperProps = onPress ? { onPress } : {};
|
|
5433
|
-
const containerStyle =
|
|
5436
|
+
const containerStyle = isWeb ? {
|
|
5434
5437
|
aspectRatio: height ? void 0 : aspectRatio,
|
|
5435
5438
|
borderRadius,
|
|
5436
5439
|
overflow: "hidden"
|
|
@@ -5462,7 +5465,7 @@ var ImageThumbnail = ({
|
|
|
5462
5465
|
left: 0,
|
|
5463
5466
|
width: "100%",
|
|
5464
5467
|
height: "100%",
|
|
5465
|
-
style:
|
|
5468
|
+
style: isWeb ? { objectFit: "cover" } : void 0
|
|
5466
5469
|
}
|
|
5467
5470
|
),
|
|
5468
5471
|
overlay === "fade" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|