Issue reporter scrollbar is non-standard/looks out of place, fixes #42568

This commit is contained in:
Rachel Macfarlane
2018-02-06 10:58:35 -08:00
parent 727a838c3e
commit a0a3d99465
4 changed files with 29 additions and 3 deletions

View File

@@ -168,6 +168,18 @@ export class IssueReporter extends Disposable {
content.push(`a { color: ${styles.textLinkColor}; }`);
}
if (styles.sliderBackgroundColor) {
content.push(`body::-webkit-scrollbar-thumb { background-color: ${styles.sliderBackgroundColor}; }`);
}
if (styles.sliderActiveColor) {
content.push(`body::-webkit-scrollbar-thumb:active { background-color: ${styles.sliderActiveColor}; }`);
}
if (styles.sliderHoverColor) {
content.push(`body::-webkit-scrollbar-thumb:hover { background-color: ${styles.sliderHoverColor}; }`);
}
styleTag.innerHTML = content.join('\n');
document.head.appendChild(styleTag);
document.body.style.color = styles.color;

View File

@@ -335,4 +335,12 @@ button {
#similar-issues {
margin-left: 0;
}
}
}
body::-webkit-scrollbar {
width: 14px;
}
body::-webkit-scrollbar-thumb {
min-height: 20px;
}