surveysparrow-ionic-plugin 1.0.7-beta.20 → 1.0.7-beta.21

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/plugin.js CHANGED
@@ -51354,6 +51354,7 @@ Please check that 1) the type for the parameter at index ${index} is correct and
51354
51354
  const getSpotcheckComponentCssStyles = (state) => {
51355
51355
  let styles = {};
51356
51356
  let wrapperStyles = {};
51357
+ let extraPaddingForMiniCardCloseButtonIfTopPosition = 0;
51357
51358
  if (state.isFullScreenMode && state.isVisible) {
51358
51359
  wrapperStyles = {
51359
51360
  display: 'flex',
@@ -51394,6 +51395,9 @@ Please check that 1) the type for the parameter at index ${index} is correct and
51394
51395
  display: 'flex',
51395
51396
  justifyContent: 'flex-start',
51396
51397
  };
51398
+ if (state.spotChecksMode === 'miniCard' && state.isCloseButtonEnabled) {
51399
+ extraPaddingForMiniCardCloseButtonIfTopPosition = 30;
51400
+ }
51397
51401
  break;
51398
51402
  case 'center':
51399
51403
  styles = {
@@ -51409,7 +51413,7 @@ Please check that 1) the type for the parameter at index ${index} is correct and
51409
51413
  }
51410
51414
  return {
51411
51415
  wrapperStyles: Object.assign({ position: 'fixed', width: '100%', height: '100%', top: '0', left: '0', backgroundColor: 'rgba(0, 0, 0, 0.3)', zIndex: '99999999', display: 'none', flexDirection: 'column' }, wrapperStyles),
51412
- styles: Object.assign({ display: 'none', flexDirection: 'column' }, styles)
51416
+ styles: Object.assign({ display: 'none', flexDirection: 'column', paddingTop: extraPaddingForMiniCardCloseButtonIfTopPosition + 'px' }, styles)
51413
51417
  };
51414
51418
  };
51415
51419
  const closeSpotCheckAndHandleSurveyEnd = async () => {