v1.2.0: 优化移动端输入与代码块显示体验

修复代码块长内容导致的页面横向溢出,并将移动端回车默认行为调整为换行,避免误触发送,提升手机端可用性。
This commit is contained in:
Daniel
2026-03-09 10:04:06 +00:00
parent 0dc2b5a768
commit e3337c8d1b
4 changed files with 32 additions and 2 deletions

View File

@@ -140,10 +140,11 @@ function sendNotification(title, content) {
const parsed = new URL(url);
const contentType = isFormData ? 'application/x-www-form-urlencoded' : 'application/json';
const req = https.request(parsed, {
const reqOptions = {
method: 'POST',
headers: { 'Content-Type': contentType, 'Content-Length': Buffer.byteLength(data) },
}, (res) => {
};
const req = https.request(parsed, reqOptions, (res) => {
let body = '';
res.on('data', (c) => body += c);
res.on('end', () => {