v2: 输入区加号右侧新增蓝色圆形发送按钮(点击发送文本)
This commit is contained in:
@@ -292,6 +292,19 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
|
||||
color: var(--ink);
|
||||
}
|
||||
.plus-btn:active { background: #e4e6ec; }
|
||||
/* 右侧操作组:加号 + 发送,靠右排列 */
|
||||
.input-actions-right {
|
||||
display: flex; align-items: center;
|
||||
margin-left: auto;
|
||||
}
|
||||
/* 发送按钮:蓝底白向上箭头 */
|
||||
.send-btn {
|
||||
flex: none; width: 36px; height: 36px; border-radius: 50%;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--active); color: #fff;
|
||||
box-shadow: 0 2px 6px rgba(57, 100, 254, 0.35);
|
||||
}
|
||||
.send-btn:active { opacity: 0.85; }
|
||||
|
||||
/* ================= 历史记录抽屉 ================= */
|
||||
#scrim {
|
||||
|
||||
@@ -69,10 +69,15 @@
|
||||
<svg viewBox="0 0 24 24" class="ic sm"><path d="M12 10.2a1.8 1.8 0 1 0 0.001 3.6A1.8 1.8 0 0 0 12 10.2z"></path><path stroke-width="1.5" d="M15.76 15.76 C10.955 20.565 5.373 22.779 3.297 20.703 C1.22 18.627 3.434 13.045 8.24 8.24 C13.045 3.435 18.627 1.22 20.703 3.297 C22.779 5.374 20.565 10.955 15.76 15.76z"></path><path stroke-width="1.5" d="M16.096 7.904 C20.905 12.713 22.965 18.298 20.703 20.703 C18.44 23.108 13.003 20.755 8.24 15.76 C3.477 10.76 1.22 5.373 3.297 3.297 C5.374 1.22 10.955 3.434 16.096 7.904z"></path></svg>
|
||||
深度思考
|
||||
</button>
|
||||
<button class="plus-btn" id="attach-btn" title="添加附件或图片" aria-label="添加附件">
|
||||
<svg viewBox="0 0 24 24" class="ic sm"><path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path></svg>
|
||||
</button>
|
||||
<input type="file" id="file-input" multiple hidden>
|
||||
<div class="input-actions-right">
|
||||
<button class="plus-btn" id="attach-btn" title="添加附件或图片" aria-label="添加附件">
|
||||
<svg viewBox="0 0 24 24" class="ic sm"><path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path></svg>
|
||||
</button>
|
||||
<button class="send-btn" id="send-btn" title="发送" aria-label="发送">
|
||||
<svg viewBox="0 0 24 24" class="ic sm"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>
|
||||
</button>
|
||||
<input type="file" id="file-input" multiple hidden>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1117,6 +1122,7 @@
|
||||
ta.addEventListener('keydown', e => {
|
||||
if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); send(); }
|
||||
});
|
||||
$('send-btn').addEventListener('click', () => send()); // 发送按钮与 Enter 行为一致
|
||||
|
||||
// 深度思考开关(仅本地视觉状态,后端无 reasoning 参数)
|
||||
$('deep-think-btn').addEventListener('click', () => {
|
||||
|
||||
Reference in New Issue
Block a user