From bfb20634e8886d715ea45dc865070e611219a954 Mon Sep 17 00:00:00 2001 From: PBK-B Date: Fri, 16 Jun 2023 12:12:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20adjust=20the=20edit=20box=20style=20to?= =?UTF-8?q?=20fix=20the=20text=20overflow=20problem=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 3 +++ mode/connect.js | 1 + 2 files changed, 4 insertions(+) diff --git a/game/game.js b/game/game.js index 774d556b1..d0157fa69 100644 --- a/game/game.js +++ b/game/game.js @@ -38452,6 +38452,9 @@ input.style.webkitUserSelect='text'; } input.style.minWidth='10px'; + input.style.maxWidth='60%'; + input.style.overflow='hidden'; + input.style.whiteSpace='nowrap'; input.onkeydown=function(e){ if(e.keyCode==13){ e.preventDefault(); diff --git a/mode/connect.js b/mode/connect.js index 95bca1221..d88f5a978 100644 --- a/mode/connect.js +++ b/mode/connect.js @@ -39,6 +39,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ node.contentEditable=true; node.style.webkitUserSelect='text'; node.style.textAlign='center'; + node.style.overflow='hidden'; var connect=function(e){ event.textnode.innerHTML='正在连接...';