catchup-library-web 1.10.4 → 1.10.6
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
|
@@ -4829,12 +4829,6 @@ var GroupingActivityMaterialContent = ({
|
|
|
4829
4829
|
if (!screenSize) return;
|
|
4830
4830
|
setMaxWidth(ref.current.offsetWidth - 12);
|
|
4831
4831
|
}, [ref, screenSize]);
|
|
4832
|
-
(0, import_react21.useEffect)(() => {
|
|
4833
|
-
if (!itemsRef) return;
|
|
4834
|
-
if (!itemsRef.current) return;
|
|
4835
|
-
if (!containerSize) return;
|
|
4836
|
-
itemsRef.current.style.width = `${containerSize.width - 200}px`;
|
|
4837
|
-
}, [itemsRef, containerSize]);
|
|
4838
4832
|
(0, import_react21.useEffect)(() => {
|
|
4839
4833
|
const shuffleArray2 = (array) => {
|
|
4840
4834
|
if (!isShuffled) {
|
|
@@ -4905,7 +4899,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
4905
4899
|
"div",
|
|
4906
4900
|
{
|
|
4907
4901
|
ref: itemsRef,
|
|
4908
|
-
className: "flex-1 flex flex-row gap-4 overflow-
|
|
4902
|
+
className: "flex-1 flex flex-row gap-x-4 gap-y-4 overflow-auto py-2",
|
|
4909
4903
|
children: filteredMaterialList.map((materialValue, index) => {
|
|
4910
4904
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4911
4905
|
DraggableItem_default,
|
package/dist/index.mjs
CHANGED
|
@@ -4630,12 +4630,6 @@ var GroupingActivityMaterialContent = ({
|
|
|
4630
4630
|
if (!screenSize) return;
|
|
4631
4631
|
setMaxWidth(ref.current.offsetWidth - 12);
|
|
4632
4632
|
}, [ref, screenSize]);
|
|
4633
|
-
useEffect9(() => {
|
|
4634
|
-
if (!itemsRef) return;
|
|
4635
|
-
if (!itemsRef.current) return;
|
|
4636
|
-
if (!containerSize) return;
|
|
4637
|
-
itemsRef.current.style.width = `${containerSize.width - 200}px`;
|
|
4638
|
-
}, [itemsRef, containerSize]);
|
|
4639
4633
|
useEffect9(() => {
|
|
4640
4634
|
const shuffleArray2 = (array) => {
|
|
4641
4635
|
if (!isShuffled) {
|
|
@@ -4706,7 +4700,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
4706
4700
|
"div",
|
|
4707
4701
|
{
|
|
4708
4702
|
ref: itemsRef,
|
|
4709
|
-
className: "flex-1 flex flex-row gap-4 overflow-
|
|
4703
|
+
className: "flex-1 flex flex-row gap-x-4 gap-y-4 overflow-auto py-2",
|
|
4710
4704
|
children: filteredMaterialList.map((materialValue, index) => {
|
|
4711
4705
|
return /* @__PURE__ */ jsx25(
|
|
4712
4706
|
DraggableItem_default,
|
package/package.json
CHANGED
|
@@ -43,12 +43,12 @@ const GroupingActivityMaterialContent = ({
|
|
|
43
43
|
setMaxWidth(ref.current.offsetWidth - 12);
|
|
44
44
|
}, [ref, screenSize]);
|
|
45
45
|
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}, [itemsRef, containerSize]);
|
|
46
|
+
// useEffect(() => {
|
|
47
|
+
// if (!itemsRef) return;
|
|
48
|
+
// if (!itemsRef.current) return;
|
|
49
|
+
// if (!containerSize) return;
|
|
50
|
+
// itemsRef.current.style.width = `${containerSize.width - 200}px`;
|
|
51
|
+
// }, [itemsRef, containerSize]);
|
|
52
52
|
|
|
53
53
|
useEffect(() => {
|
|
54
54
|
const shuffleArray = (array: any) => {
|
|
@@ -131,7 +131,7 @@ const GroupingActivityMaterialContent = ({
|
|
|
131
131
|
<>
|
|
132
132
|
<div
|
|
133
133
|
ref={itemsRef}
|
|
134
|
-
className="flex-1 flex flex-row gap-4 overflow-
|
|
134
|
+
className="flex-1 flex flex-row gap-x-4 gap-y-4 overflow-auto py-2"
|
|
135
135
|
>
|
|
136
136
|
{filteredMaterialList.map((materialValue, index) => {
|
|
137
137
|
return (
|