dirk-cfx-react 1.1.69 → 1.1.70
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/components/index.cjs +3 -4
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +3 -4
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -4099,7 +4099,7 @@ function ConfigPanel(props) {
|
|
|
4099
4099
|
}
|
|
4100
4100
|
) });
|
|
4101
4101
|
}
|
|
4102
|
-
function LazyImage({ src,
|
|
4102
|
+
function LazyImage({ src, style }) {
|
|
4103
4103
|
const [visible, setVisible] = useState(false);
|
|
4104
4104
|
const ref = useRef(null);
|
|
4105
4105
|
useEffect(() => {
|
|
@@ -4112,7 +4112,7 @@ function LazyImage({ src, alt, style }) {
|
|
|
4112
4112
|
if (ref.current) observer.observe(ref.current);
|
|
4113
4113
|
return () => observer.disconnect();
|
|
4114
4114
|
}, []);
|
|
4115
|
-
return /* @__PURE__ */ jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsx(Image, { src,
|
|
4115
|
+
return /* @__PURE__ */ jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsx(Image, { src, fit: "contain", style }) });
|
|
4116
4116
|
}
|
|
4117
4117
|
function SelectItem(props) {
|
|
4118
4118
|
const invItems = useItems();
|
|
@@ -4140,12 +4140,12 @@ function SelectItem(props) {
|
|
|
4140
4140
|
searchable: true,
|
|
4141
4141
|
comboboxProps: { withinPortal: true, zIndex: 2e3 },
|
|
4142
4142
|
leftSectionWidth: "4vh",
|
|
4143
|
+
leftSectionPointerEvents: "none",
|
|
4143
4144
|
leftSection: props.value ? /* @__PURE__ */ jsx(
|
|
4144
4145
|
Image,
|
|
4145
4146
|
{
|
|
4146
4147
|
fallbackSrc: "/placeholder.png",
|
|
4147
4148
|
src: invItems[props.value]?.image || "",
|
|
4148
|
-
alt: props.value,
|
|
4149
4149
|
fit: "contain",
|
|
4150
4150
|
maw: "4vh",
|
|
4151
4151
|
style: { aspectRatio: "1 / 1" }
|
|
@@ -4157,7 +4157,6 @@ function SelectItem(props) {
|
|
|
4157
4157
|
LazyImage,
|
|
4158
4158
|
{
|
|
4159
4159
|
src: invItems[item.option.value]?.image || "",
|
|
4160
|
-
alt: item.option.label,
|
|
4161
4160
|
style: { aspectRatio: "1 / 1" }
|
|
4162
4161
|
}
|
|
4163
4162
|
),
|