Skip to content

Commit e8b3dd4

Browse files
committed
v7.0.21
1 parent abce2f6 commit e8b3dd4

File tree

6 files changed

+32
-5
lines changed

6 files changed

+32
-5
lines changed

build/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.

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": "7.0.20",
3+
"version": "7.0.21",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/7.0.21/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/GleapMarkerManager.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default class GleapMarkerManager {
5555
if (dialog) {
5656
dialog.remove();
5757
}
58-
58+
5959
// Capture SVG ref
6060
const captureSVG = document.querySelector(".bb-capture-svg");
6161
if (captureSVG) {
@@ -248,6 +248,9 @@ export default class GleapMarkerManager {
248248
</div>
249249
`;
250250
document.body.appendChild(bugReportingEditor);
251+
252+
// Set RTL layout
253+
bugReportingEditor.setAttribute("dir", GleapTranslationManager.getInstance().isRTLLayout ? "rtl" : "ltr");
251254
}
252255

253256
showNextStep = function () {

src/UI.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const injectStyledCSS = (
6262
bottom: 95px;
6363
width: 380px !important;
6464
position: fixed;
65-
z-index: ${zIndexBase + 30};
65+
z-index: ${zIndexBase + 31};
6666
visibility: visible;
6767
height: 100%;
6868
max-height: 0px;
@@ -493,6 +493,14 @@ export const injectStyledCSS = (
493493
background-color: ${primaryColor};
494494
border-bottom-left-radius: ${formItemSmallBorderRadius}px;
495495
}
496+
497+
[dir=rtl] .bb-capture-dismiss {
498+
top: 0px;
499+
left: 0px;
500+
right: auto;
501+
border-bottom-left-radius: 0px !important;
502+
border-bottom-right-radius: ${formItemSmallBorderRadius}px;
503+
}
496504
497505
.bb-capture-dismiss svg path {
498506
fill: ${contrastColor};
@@ -518,6 +526,11 @@ export const injectStyledCSS = (
518526
font-size: 15px;
519527
margin-left: 12px;
520528
}
529+
530+
[dir=rtl].bb-capture-editor .bb-capture-button-next {
531+
margin-left: auto;
532+
margin-right: 12px;
533+
}
521534
522535
.bb-capture-toolbar-item-spacer {
523536
width: 1px;
@@ -675,6 +688,16 @@ export const injectStyledCSS = (
675688
margin-right: 0px;
676689
}
677690
691+
[dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color {
692+
margin-right: auto;
693+
margin-left: 12px;
694+
}
695+
696+
[dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color:last-of-type {
697+
margin-right: auto;
698+
margin-left: 0px;
699+
}
700+
678701
.bb-capture-toolbar-item-recording[data-active="true"] svg:first-of-type {
679702
display: none;
680703
}

0 commit comments

Comments
 (0)