Skip to content

Commit 2545016

Browse files
committed
Cleanup.
1 parent 27a21ce commit 2545016

File tree

2 files changed

+20
-27
lines changed

2 files changed

+20
-27
lines changed

src/GleapMarkerManager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ export default class GleapMarkerManager {
5555
if (dialog) {
5656
dialog.remove();
5757
}
58+
59+
// Capture SVG ref
60+
const captureSVG = document.querySelector(".bb-capture-svg");
61+
if (captureSVG) {
62+
captureSVG.classList.add("bb-capture-svg--preview");
63+
}
5864

5965
// Remove the preview UI
6066
const videoPreviewContainer = document.querySelector(".bb-capture-preview");

src/UI.js

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ export const injectStyledCSS = (
5454
const buttonBorderRadius = Math.round(borderRadius * 1.05);
5555
const formItemBorderRadius = Math.round(borderRadius * 0.4);
5656
const formItemSmallBorderRadius = Math.round(borderRadius * 0.25);
57+
const zIndexBase = 2147483600;
5758

5859
const colorStyleSheet = `
5960
.gleap-frame-container {
6061
right: 20px;
6162
bottom: 95px;
6263
width: 380px !important;
6364
position: fixed;
64-
z-index: 2147483647;
65+
z-index: ${zIndexBase + 30};
6566
visibility: visible;
6667
height: 100%;
6768
max-height: 0px;
@@ -145,7 +146,7 @@ export const injectStyledCSS = (
145146
-webkit-tap-highlight-color: transparent;
146147
background-color: transparent;
147148
color: #000000;
148-
z-index: 2147483100;
149+
z-index: ${zIndexBase + 30};
149150
box-sizing: border-box;
150151
display: flex;
151152
align-items: center;
@@ -345,7 +346,7 @@ export const injectStyledCSS = (
345346
346347
.bb-capture-svg {
347348
position: absolute;
348-
z-index: 916777264;
349+
z-index: ${zIndexBase + 14};
349350
top: 0px;
350351
left: 0px;
351352
right: 0px;
@@ -355,6 +356,10 @@ export const injectStyledCSS = (
355356
margin: 0px;
356357
cursor: crosshair;
357358
}
359+
360+
.bb-capture-svg--preview {
361+
cursor: auto !important;
362+
}
358363
359364
.bb-rec-on-circle {
360365
animation-name: bbRecIconFade;
@@ -374,7 +379,7 @@ export const injectStyledCSS = (
374379
position: fixed;
375380
top: -200px;
376381
left: 0px;
377-
z-index: 916777266;
382+
z-index: ${zIndexBase + 16};
378383
transition: opacity 0.3s ease-in-out;
379384
}
380385
@@ -391,15 +396,11 @@ export const injectStyledCSS = (
391396
height: 100vh;
392397
border: 4px solid ${primaryColor};
393398
cursor: crosshair;
394-
z-index: 916777260;
399+
z-index: ${zIndexBase + 10};
395400
box-sizing: border-box;
396401
pointer-events: none;
397402
}
398403
399-
.bb-feedback-dialog-backdrop {
400-
display: none;
401-
}
402-
403404
.bb-capture-editor-notrecording .bb-capture-editor-borderlayer {
404405
background-color: rgba(0, 0, 0, 0.8);
405406
}
@@ -431,7 +432,7 @@ export const injectStyledCSS = (
431432
top: 20px;
432433
left: 50%;
433434
transform: translateX(-50%);
434-
z-index: 916777268;
435+
z-index: ${zIndexBase + 18};
435436
background-color: #fff;
436437
padding: 5px;
437438
display: flex;
@@ -445,7 +446,7 @@ export const injectStyledCSS = (
445446
position: fixed;
446447
top: 0px;
447448
right: 0px;
448-
z-index: 916777268;
449+
z-index: ${zIndexBase + 18};
449450
cursor: pointer;
450451
-webkit-tap-highlight-color: transparent;
451452
width: 36px;
@@ -534,7 +535,7 @@ export const injectStyledCSS = (
534535
height: 100vh;
535536
justify-content: center;
536537
align-items: center;
537-
z-index: 916777270;
538+
z-index: ${zIndexBase + 20};
538539
}
539540
540541
.bb-capture-preview-inner {
@@ -612,7 +613,7 @@ export const injectStyledCSS = (
612613
top: 70px;
613614
left: 50%;
614615
transform: translateX(-50%);
615-
z-index: 916777268;
616+
z-index: ${zIndexBase + 18};
616617
background-color: #fff;
617618
display: none;
618619
padding: 10px;
@@ -920,20 +921,6 @@ export const injectStyledCSS = (
920921
transform: none;
921922
}
922923
923-
.bb-feedback-dialog-backdrop {
924-
display: block;
925-
position: fixed;
926-
top: 0px;
927-
left: 0px;
928-
width: 100vw;
929-
height: 100vh;
930-
height: -webkit-fill-available;
931-
z-index: 916777230;
932-
box-sizing: border-box;
933-
pointer-events: none;
934-
background-color: rgba(0, 0, 0, 0.6);
935-
}
936-
937924
.bb-capture-editor-drag-info {
938925
display: none;
939926
}

0 commit comments

Comments
 (0)