增加手机端代码提示滚动条宽度

This commit is contained in:
shijian 2023-09-27 00:44:17 +08:00
parent c6bbf265de
commit 929c1b5008
2 changed files with 7 additions and 1 deletions

View File

@ -7554,7 +7554,7 @@
if(str.lastIndexOf(start,0)==0&&!list.includes(str)) list.push(str); if(str.lastIndexOf(start,0)==0&&!list.includes(str)) list.push(str);
} }
for(let v=token.state.localVars;v;v=v.next) maybeAdd(v.name); for(let v=token.state.localVars;v;v=v.next) maybeAdd(v.name);
for(let c=token.state.context;c;c=c.prev) for (let v=c.vars;v;v=v.next) maybeAdd(v.name) for(let c=token.state.context;c;c=c.prev) for(let v=c.vars;v;v=v.next) maybeAdd(v.name)
for(let v=token.state.globalVars;v;v=v.next) maybeAdd(v.name); for(let v=token.state.globalVars;v;v=v.next) maybeAdd(v.name);
if(options&&options.additionalContext!=null) for(let key in options.additionalContext) maybeAdd(key); if(options&&options.additionalContext!=null) for(let key in options.additionalContext) maybeAdd(key);
list.addArray(keys); list.addArray(keys);

View File

@ -468,6 +468,12 @@ div.cm-s-mdn-like span.CodeMirror-matchingbracket { outline:1px solid grey; colo
display: block; display: block;
} }
@media (max-width: 1000px) {
.CodeMirror-hints::-webkit-scrollbar {
width: 25px;
}
}
.CodeMirror-hints::-webkit-scrollbar-thumb { .CodeMirror-hints::-webkit-scrollbar-thumb {
background-color: rgb(218, 215, 215); background-color: rgb(218, 215, 215);
height: 50px; height: 50px;