Skip to content

Commit 82e1e57

Browse files
Move toggle to bottom
1 parent a254c1e commit 82e1e57

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/app/src/app/overmind/effects/chameleon.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,18 @@ export default {
2626
/*
2727
This method might be called at any point in time, with a user or not. We want to
2828
make sure that we load the script on first call and then make sure it finishes loading
29-
if any new calls are made.
29+
if any new calls are made during it loading
3030
*/
3131
loadTour(userId: string) {
3232
if (!_script) {
33-
_script = loadScript();
33+
_script = loadScript().then(() => {
34+
const cmln = document.querySelector('#chmln-editor');
35+
36+
if (cmln) {
37+
cmln.shadowRoot.childNodes[0].innerHTML +=
38+
'#chmln-toggle-item { top: auto !important; bottom: 100px !important; }';
39+
}
40+
});
3441
}
3542

3643
if (userId) {

0 commit comments

Comments
 (0)