fix: adjust the edit box style to fix the text overflow problem 🐛

This commit is contained in:
PBK-B 2023-06-16 12:12:35 +08:00
parent 73272251af
commit bfb20634e8
2 changed files with 4 additions and 0 deletions

View File

@ -38452,6 +38452,9 @@
input.style.webkitUserSelect='text'; input.style.webkitUserSelect='text';
} }
input.style.minWidth='10px'; input.style.minWidth='10px';
input.style.maxWidth='60%';
input.style.overflow='hidden';
input.style.whiteSpace='nowrap';
input.onkeydown=function(e){ input.onkeydown=function(e){
if(e.keyCode==13){ if(e.keyCode==13){
e.preventDefault(); e.preventDefault();

View File

@ -39,6 +39,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
node.contentEditable=true; node.contentEditable=true;
node.style.webkitUserSelect='text'; node.style.webkitUserSelect='text';
node.style.textAlign='center'; node.style.textAlign='center';
node.style.overflow='hidden';
var connect=function(e){ var connect=function(e){
event.textnode.innerHTML='正在连接...'; event.textnode.innerHTML='正在连接...';