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/angular-ui/esm2022/spotchecks/helpers.mjs +6 -1
- package/dist/angular-ui/fesm2022/angular-ui.mjs +5 -0
- package/dist/angular-ui/fesm2022/angular-ui.mjs.map +1 -1
- package/dist/angular-ui/spotchecks/helpers.d.ts +1 -0
- package/dist/esm/angular-ui/lib/spotchecks/helpers.d.ts +1 -0
- package/dist/esm/angular-ui/lib/spotchecks/helpers.js +5 -1
- package/dist/esm/angular-ui/lib/spotchecks/helpers.js.map +1 -1
- package/dist/plugin.cjs.js +5 -1
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +5 -1
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
- package/src/angular-ui/lib/spotchecks/helpers.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "surveysparrow-ionic-plugin",
|
|
3
|
-
"version": "1.0.7-beta.
|
|
3
|
+
"version": "1.0.7-beta.21",
|
|
4
4
|
"description": "SurveySparrow SDK enables you to collect feedback from your mobile app. Embed the Classic, Chat & NPS surveys in your ionic application seamlessly with few lines of code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/plugin.cjs.js",
|
|
@@ -307,6 +307,7 @@ export const handleSurveyEnd = () => {
|
|
|
307
307
|
export const getSpotcheckComponentCssStyles = (state: SpotcheckState) => {
|
|
308
308
|
let styles = {}
|
|
309
309
|
let wrapperStyles = {}
|
|
310
|
+
let extraPaddingForMiniCardCloseButtonIfTopPosition = 0;
|
|
310
311
|
if (state.isFullScreenMode && state.isVisible) {
|
|
311
312
|
wrapperStyles = {
|
|
312
313
|
display: 'flex',
|
|
@@ -351,6 +352,9 @@ export const getSpotcheckComponentCssStyles = (state: SpotcheckState) => {
|
|
|
351
352
|
display: 'flex',
|
|
352
353
|
justifyContent: 'flex-start',
|
|
353
354
|
};
|
|
355
|
+
if(state.spotChecksMode === 'miniCard' && state.isCloseButtonEnabled) {
|
|
356
|
+
extraPaddingForMiniCardCloseButtonIfTopPosition = 30;
|
|
357
|
+
}
|
|
354
358
|
break;
|
|
355
359
|
|
|
356
360
|
case 'center':
|
|
@@ -385,6 +389,7 @@ export const getSpotcheckComponentCssStyles = (state: SpotcheckState) => {
|
|
|
385
389
|
styles: {
|
|
386
390
|
display: 'none',
|
|
387
391
|
flexDirection: 'column',
|
|
392
|
+
paddingTop: extraPaddingForMiniCardCloseButtonIfTopPosition+'px',
|
|
388
393
|
...styles,
|
|
389
394
|
}
|
|
390
395
|
};
|