Skip to content

Commit 4040304

Browse files
committed
v13.0.3
1 parent 6404669 commit 4040304

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "13.0.2",
3+
"version": "13.0.3",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

src/GleapProductTours.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default class GleapProductTours {
4444
const step = steps[i];
4545

4646
var message = "";
47+
var hasSender = false;
4748

4849
if (step.type === "video-pointer") {
4950
message = `<div class="gleap-tour-video">
@@ -56,6 +57,7 @@ export default class GleapProductTours {
5657
var senderHTML = ``;
5758

5859
if (config.sender && config.sender.firstName) {
60+
hasSender = true;
5961
senderHTML = `<div class="gleap-tour-sender">
6062
<div class="gleap-tour-sender-image" style="background-image: url('${config.sender.profileImageUrl}');"></div>
6163
<div class="gleap-tour-sender-name">${config.sender.firstName}</div>
@@ -69,7 +71,7 @@ export default class GleapProductTours {
6971
disableActiveInteraction: !(step.allowClick ?? true),
7072
popover: {
7173
description: message,
72-
popoverClass: `gleap-tour-popover-${step.type} ${config.allowClose && 'gleap-tour-popover-can-close'}`,
74+
popoverClass: `gleap-tour-popover-${step.type} ${!hasSender && 'gleap-tour-popover-no-sender'} ${config.allowClose && 'gleap-tour-popover-can-close'}`,
7375
},
7476
}
7577
if (step.selector && step.selector.length > 0) {
@@ -81,6 +83,7 @@ export default class GleapProductTours {
8183
const gleapTourObj = GleapTours({
8284
showProgress: true,
8385
steps: driverSteps,
86+
showProgress: steps.length > 1,
8487
allowClose: config.allowClose,
8588
nextBtnText: config.nextText,
8689
doneBtnText: config.doneText,

src/UI.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,13 @@ export const injectStyledCSS = (
16241624
min-width: 270px;
16251625
}
16261626
1627+
.gleap-tour-message iframe {
1628+
width: 100%;
1629+
height: 300px;
1630+
margin-top: 10px;
1631+
margin-bottom: 10px;
1632+
}
1633+
16271634
.gleap-tour-sender-name {
16281635
font-size: 15px;
16291636
}
@@ -1669,6 +1676,10 @@ export const injectStyledCSS = (
16691676
opacity: 1;
16701677
}
16711678
1679+
.gleap-tour-popover-pointer.gleap-tour-popover-no-sender .gleap-tour-message {
1680+
padding-right: 20px;
1681+
}
1682+
16721683
.gleap-tour-video video {
16731684
width: 100%;
16741685
max-width: 100%;

0 commit comments

Comments
 (0)