This commit is contained in:
fofolee
2020-06-22 23:00:23 +08:00
parent 21d2f52ee9
commit de580d8668
3 changed files with 56 additions and 36 deletions

View File

@@ -337,12 +337,14 @@ let showCustomize = () => {
createEditor()
$('#program, #type, #output').select2({
width: '40%',
minimumResultsForSearch: Infinity
minimumResultsForSearch: Infinity,
dropdownParent: $("#customize")
});
$('#vars').select2({
width: '40%',
placeholder: "插入特殊变量",
minimumResultsForSearch: Infinity
minimumResultsForSearch: Infinity,
dropdownParent: $("#customize")
});
$('#tags').select2({
width: '40%',
@@ -350,7 +352,8 @@ let showCustomize = () => {
tags: true,
allowClear: true,
tokenSeparators: [',', ' '],
maximumSelectionLength: 3
maximumSelectionLength: 3,
dropdownParent: $("#customize")
});
$("#customize").animate({ top: '0px' });
}
@@ -972,7 +975,8 @@ showCodeEditor = () => {
`
$("#options").html(customWindow)
createEditor()
$(".CodeMirror").css({ height: '41rem' })
$(".CodeMirror").css({ height: '580px' })
$(".robot").css({ "margin-bottom": "5px" });
$("#customize").css({ top: '0px', padding: '0px' });
$("span.customscript > input").css({"height": "30px"})
var db = getDB('codeHistory')
@@ -984,7 +988,8 @@ showCodeEditor = () => {
programCheck()
$('#program').select2({
width: 100,
minimumResultsForSearch: Infinity
minimumResultsForSearch: Infinity,
dropdownParent: $("#customize")
});
$("#options").show()
}

View File

@@ -523,9 +523,9 @@ input::-webkit-input-placeholder {
transition: 0.5s;
}
::-webkit-scrollbar {
/* ::-webkit-scrollbar {
height: 0;
}
} */
li.CodeMirror-hint {
min-width: 200px;