@cntrl-site/sdk-nextjs 1.4.3 → 1.4.4
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/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +15 -0
- package/lib/components/items/Item.js +1 -1
- package/package.json +1 -1
- package/src/components/items/Item.tsx +1 -1
- package/cntrl-site-sdk-nextjs-1.2.0.tgz +0 -0
- package/cntrl-site-sdk-nextjs-1.3.3.tgz +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="HtmlUnknownAttribute" enabled="true" level="WARNING" enabled_by_default="true">
|
|
5
|
+
<option name="myValues">
|
|
6
|
+
<value>
|
|
7
|
+
<list size="1">
|
|
8
|
+
<item index="0" class="java.lang.String" itemvalue="jsx" />
|
|
9
|
+
</list>
|
|
10
|
+
</value>
|
|
11
|
+
</option>
|
|
12
|
+
<option name="myCustomValuesEnabled" value="true" />
|
|
13
|
+
</inspection_tool>
|
|
14
|
+
</profile>
|
|
15
|
+
</component>
|
|
@@ -78,7 +78,7 @@ const Item = ({ item, sectionId, articleHeight, isParentVisible = true, isInGrou
|
|
|
78
78
|
}
|
|
79
79
|
const itemArticleOffset = sectionTop / window.innerWidth + stickyTop;
|
|
80
80
|
const maxStickyTo = articleHeight - itemArticleOffset - height;
|
|
81
|
-
const end = sticky.to
|
|
81
|
+
const end = sticky.to !== undefined
|
|
82
82
|
? Math.min(maxStickyTo, sticky.to)
|
|
83
83
|
: articleHeight - itemArticleOffset - height;
|
|
84
84
|
const wrapperHeight = end - sticky.from + height;
|
package/package.json
CHANGED
|
@@ -107,7 +107,7 @@ export const Item: FC<ItemWrapperProps> = ({ item, sectionId, articleHeight, isP
|
|
|
107
107
|
}
|
|
108
108
|
const itemArticleOffset = sectionTop / window.innerWidth + stickyTop;
|
|
109
109
|
const maxStickyTo = articleHeight - itemArticleOffset - height;
|
|
110
|
-
const end = sticky.to
|
|
110
|
+
const end = sticky.to !== undefined
|
|
111
111
|
? Math.min(maxStickyTo, sticky.to)
|
|
112
112
|
: articleHeight - itemArticleOffset - height;
|
|
113
113
|
const wrapperHeight = end - sticky.from + height;
|
|
Binary file
|
|
Binary file
|