Skip to content

Commit

Permalink
v13.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Mar 15, 2024
1 parent 6f26034 commit 2e36151
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/esm/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ Gleap.on("tool-execution", (tool) => {

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

Gleap.initialize("BXFtGQF5hRAJZqnyOAzSGH3NbEM4frFx");
Gleap.initialize("QTJpSeGQXMQPXxKqaXB8ZSBmZ57idbgS");
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "13.5.2",
"version": "13.5.3",
"main": "build/cjs/index.js",
"module": "build/esm/index.mjs",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions published/13.5.3/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/GleapNotificationManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Gleap, {
GleapFrameManager,
GleapSession,
GleapAudioManager,
GleapTranslationManager,
GleapEventManager,
} from "./Gleap";
import { loadFromGleapCache, saveToGleapCache } from "./GleapHelper";
Expand Down Expand Up @@ -263,5 +264,7 @@ export default class GleapNotificationManager {
this.notificationContainer.classList.add(classNoButton);
}
}

this.notificationContainer.setAttribute("dir", GleapTranslationManager.getInstance().isRTLLayout ? "rtl" : "ltr");
}
}
24 changes: 23 additions & 1 deletion src/UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,17 @@ export const injectStyledCSS = (
right: initial !important;
}
[dir=rtl].gleap-notification-container {
left: ${4 + buttonX}px;
right: initial !important;
}
[dir=rtl].gleap-notification-container--left {
left: initial !important;
right: ${buttonX}px !important;
align-items: flex-start !important;
}
.gleap-notification-container--no-button {
bottom: ${buttonY}px;
}
Expand Down Expand Up @@ -544,7 +555,7 @@ export const injectStyledCSS = (
line-height: 21px;
font-weight: 400;
}
.gleap-notification-item-news-content-title {
color: ${contrastBackgroundColor};
font-size: 15px;
Expand All @@ -565,6 +576,11 @@ export const injectStyledCSS = (
width: 20px;
}
[dir=rtl] .gleap-notification-item-news-sender img {
margin-left: 8px;
margin-right: 0px !important;
}
.gleap-notification-item-news-container {
display: flex;
animation: fadeIn;
Expand Down Expand Up @@ -608,6 +624,11 @@ export const injectStyledCSS = (
cursor: pointer;
}
[dir=rtl] .gleap-notification-item img {
margin-left: 8px;
margin-right: 0px !important;
}
.gleap-notification-item-container {
box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);
border-radius: ${chatRadius}px;
Expand Down Expand Up @@ -1503,6 +1524,7 @@ export const injectStyledCSS = (
}
@media only screen and (max-width: 450px) {
[dir=rtl].gleap-frame-container,
.gleap-frame-container {
left: 0px;
right: 0px;
Expand Down

0 comments on commit 2e36151

Please sign in to comment.