@awell-health/ui-library 0.1.142 → 0.1.144
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.css +4 -4
- package/dist/index.js +9 -3
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -8258,12 +8258,12 @@ html {
|
|
|
8258
8258
|
margin: 0 auto;
|
|
8259
8259
|
}
|
|
8260
8260
|
|
|
8261
|
-
.awell__form_traditional_form {
|
|
8262
|
-
padding-bottom: calc(var(--awell-mobile-footer-height) + var(--awell-spacing-
|
|
8261
|
+
main.awell__form_traditional_form {
|
|
8262
|
+
padding-bottom: calc(var(--awell-mobile-footer-height) + var(--awell-spacing-28));
|
|
8263
8263
|
}
|
|
8264
8264
|
@media (min-width: 640px) {
|
|
8265
|
-
.awell__form_traditional_form {
|
|
8266
|
-
padding-bottom: calc(var(--awell-footer-height) + var(--awell-spacing-
|
|
8265
|
+
main.awell__form_traditional_form {
|
|
8266
|
+
padding-bottom: calc(var(--awell-footer-height) + var(--awell-spacing-28));
|
|
8267
8267
|
}
|
|
8268
8268
|
}
|
|
8269
8269
|
|
package/dist/index.js
CHANGED
|
@@ -34859,10 +34859,16 @@ Check the top-level render call using <` + t + ">.");
|
|
|
34859
34859
|
var containerRect = container.getBoundingClientRect();
|
|
34860
34860
|
var dropdownRect = dropdownElement.getBoundingClientRect();
|
|
34861
34861
|
var selectRect = selectWrapperRef.current.getBoundingClientRect();
|
|
34862
|
+
var fixedFooter = Array.from(document.querySelectorAll('footer')).find(function (footer) {
|
|
34863
|
+
var footerStyles = window.getComputedStyle(footer);
|
|
34864
|
+
return footerStyles.position === 'fixed' && footerStyles.bottom === '0px';
|
|
34865
|
+
});
|
|
34866
|
+
var visibleContainerBottom = fixedFooter ?
|
|
34867
|
+
Math.min(containerRect.bottom, fixedFooter.getBoundingClientRect().top) :
|
|
34868
|
+
containerRect.bottom;
|
|
34862
34869
|
var dropdownBottom = selectRect.bottom + dropdownRect.height;
|
|
34863
|
-
|
|
34864
|
-
|
|
34865
|
-
var scrollAmount = dropdownBottom - containerBottom + 20;
|
|
34870
|
+
if (dropdownBottom > visibleContainerBottom) {
|
|
34871
|
+
var scrollAmount = dropdownBottom - visibleContainerBottom + 20;
|
|
34866
34872
|
container.scrollTo({
|
|
34867
34873
|
top: container.scrollTop + scrollAmount,
|
|
34868
34874
|
behavior: 'smooth' });
|