[feature] prompt background for all prompt

This commit is contained in:
zhangtianli2006 2021-03-26 21:11:47 +08:00
parent 9cb2e22b84
commit 06587d6d3d
3 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@
<button class="send-button" onclick="send()">Send</button>
</div>
<div id="prompt-background"></div>
<div id="prompt-background" hidden></div>
<div id="prompt-box" hidden>
<div id="prompt-box-title"></div>
<div id="prompt-box-content">

View File

@ -186,6 +186,7 @@ function open_prompt(title) {
$('#prompt-box-title').text(title);
$('#prompt-data').val('');
$('#prompt-box').show('fast', () => { $('#prompt-data').focus(); });
$('#prompt-background').show();
let resolve_callback;
let res = new Promise((resolve) => {

View File

@ -195,7 +195,7 @@ pre {
}
#prompt-data:focus {
border: var(--blue-50) 2px solid;
border: var(--blue-50) 1px solid;
box-shadow: 0 0 0 1px var(--blue-50), 0 0 0 4px var(--blue-50-a30);
}