Skip to content

Commit a4c0879

Browse files
authored
Merge pull request #44 from alexgarabt/main
Fix #41 issue and #42(duplicate of #41), scroll-bar global styles.
2 parents c8ce989 + b4065c2 commit a4c0879

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/core/web/toolbar.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -397,30 +397,30 @@ export const createToolbar = (): () => void => {
397397
background: rgba(255, 255, 255, 0.3);
398398
}
399399
400-
::-webkit-scrollbar {
401-
width: 4px;
402-
height: 4px;
403-
}
404-
405-
::-webkit-scrollbar-track {
406-
background: rgba(255, 255, 255, 0.1);
407-
border-radius: 4px;
408-
}
409-
410-
::-webkit-scrollbar-thumb {
411-
background: rgba(255, 255, 255, 0.3);
412-
border-radius: 4px;
413-
}
414-
415-
::-webkit-scrollbar-thumb:hover {
416-
background: rgba(255, 255, 255, 0.4);
417-
}
418-
419-
/* For Firefox */
420-
* {
421-
scrollbar-width: thin;
422-
scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
423-
}
400+
#react-scan-toolbar::-webkit-scrollbar {
401+
width: 4px;
402+
height: 4px;
403+
}
404+
405+
#react-scan-toolbar::-webkit-scrollbar-track {
406+
background: rgba(255, 255, 255, 0.1);
407+
border-radius: 4px;
408+
}
409+
410+
#react-scan-toolbar::-webkit-scrollbar-thumb {
411+
background: rgba(255, 255, 255, 0.3);
412+
border-radius: 4px;
413+
}
414+
415+
#react-scan-toolbar::-webkit-scrollbar-thumb:hover {
416+
background: rgba(255, 255, 255, 0.4);
417+
}
418+
419+
/* For Firefox */
420+
#react-scan-toolbar * {
421+
scrollbar-width: thin;
422+
scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
423+
}
424424
`;
425425

426426
if (document.head) document.head.appendChild(styleElement);

0 commit comments

Comments
 (0)