Skip to content

Commit 2e36151

Browse files
committed
v13.5.3
1 parent 6f26034 commit 2e36151

File tree

8 files changed

+32
-6
lines changed

8 files changed

+32
-6
lines changed

build/cjs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/esm/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ Gleap.on("tool-execution", (tool) => {
3434

3535
Gleap.setTicketAttribute("notes", "This is a test value.");
3636

37-
Gleap.initialize("BXFtGQF5hRAJZqnyOAzSGH3NbEM4frFx");
37+
Gleap.initialize("QTJpSeGQXMQPXxKqaXB8ZSBmZ57idbgS");

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.5.2",
3+
"version": "13.5.3",
44
"main": "build/cjs/index.js",
55
"module": "build/esm/index.mjs",
66
"exports": {

published/13.5.3/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GleapNotificationManager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Gleap, {
44
GleapFrameManager,
55
GleapSession,
66
GleapAudioManager,
7+
GleapTranslationManager,
78
GleapEventManager,
89
} from "./Gleap";
910
import { loadFromGleapCache, saveToGleapCache } from "./GleapHelper";
@@ -263,5 +264,7 @@ export default class GleapNotificationManager {
263264
this.notificationContainer.classList.add(classNoButton);
264265
}
265266
}
267+
268+
this.notificationContainer.setAttribute("dir", GleapTranslationManager.getInstance().isRTLLayout ? "rtl" : "ltr");
266269
}
267270
}

src/UI.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,17 @@ export const injectStyledCSS = (
385385
right: initial !important;
386386
}
387387
388+
[dir=rtl].gleap-notification-container {
389+
left: ${4 + buttonX}px;
390+
right: initial !important;
391+
}
392+
393+
[dir=rtl].gleap-notification-container--left {
394+
left: initial !important;
395+
right: ${buttonX}px !important;
396+
align-items: flex-start !important;
397+
}
398+
388399
.gleap-notification-container--no-button {
389400
bottom: ${buttonY}px;
390401
}
@@ -544,7 +555,7 @@ export const injectStyledCSS = (
544555
line-height: 21px;
545556
font-weight: 400;
546557
}
547-
558+
548559
.gleap-notification-item-news-content-title {
549560
color: ${contrastBackgroundColor};
550561
font-size: 15px;
@@ -565,6 +576,11 @@ export const injectStyledCSS = (
565576
width: 20px;
566577
}
567578
579+
[dir=rtl] .gleap-notification-item-news-sender img {
580+
margin-left: 8px;
581+
margin-right: 0px !important;
582+
}
583+
568584
.gleap-notification-item-news-container {
569585
display: flex;
570586
animation: fadeIn;
@@ -608,6 +624,11 @@ export const injectStyledCSS = (
608624
cursor: pointer;
609625
}
610626
627+
[dir=rtl] .gleap-notification-item img {
628+
margin-left: 8px;
629+
margin-right: 0px !important;
630+
}
631+
611632
.gleap-notification-item-container {
612633
box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);
613634
border-radius: ${chatRadius}px;
@@ -1503,6 +1524,7 @@ export const injectStyledCSS = (
15031524
}
15041525
15051526
@media only screen and (max-width: 450px) {
1527+
[dir=rtl].gleap-frame-container,
15061528
.gleap-frame-container {
15071529
left: 0px;
15081530
right: 0px;

0 commit comments

Comments
 (0)