From 1884fc67503101ac7ca16776bffcabf8eb429508 Mon Sep 17 00:00:00 2001 From: XiaoZhuo Date: Thu, 5 Oct 2023 12:00:07 +0800 Subject: [PATCH] =?UTF-8?q?avatar=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/client.js | 11 +++++++++++ public/weigets.js | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/public/client.js b/public/client.js index 13376bb..6ee3230 100644 --- a/public/client.js +++ b/public/client.js @@ -267,6 +267,17 @@ export default class ClientList { } }), Input({ + style: { + width: '100px', + border: '2px dotted #bbb', + borderRadius: '50%', + outline: 'none', + padding: '5px 0', + textAlign: 'center', + position: 'absolute', + bottom: '-5px', + left: '85px', + }, value: item.name ?? item.id, type: 'text', placeholder: '请设置你的名字', diff --git a/public/weigets.js b/public/weigets.js index b13dd66..bf93cc2 100644 --- a/public/weigets.js +++ b/public/weigets.js @@ -63,8 +63,9 @@ export function Dialog(options) { transform: translate(-50%, -50%); padding: 1em; background-color: #fff; - border-radius: 0.5em; + border-radius: 150px; box-shadow: 0 0 1em #ccc; + overflow: hidden; ` element.appendChild(content) // 点击空白处关闭