This commit is contained in:
2026-08-31 21:39:00 +08:00
parent 85266f3879
commit 25324e7b16
6 changed files with 4 additions and 285 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ body {
gap: 8px;
}
.header-left { display: flex; align-items: center; gap: 8px; flex: 1; }
.header h2 { font-size: 17px; font-weight: 600; white-space: nowrap; }
.header h2 { font-size: 17px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.chat-title {
flex: 1; text-align: center; font-size: 16px; font-weight: 600;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
+1 -5
View File
@@ -15,17 +15,13 @@
<!-- 会话列表页 -->
<div id="list-page" class="page">
<div class="header">
<div class="header-left">
<div class="header-left" onclick="ui.logout()">
<svg width="24" height="24" viewBox="0 0 24 24" stroke="#fff" fill="none" stroke-width="1.5">
<rect x="3" y="3" width="18" height="18" rx="3"/><line x1="9" y1="9" x2="15" y2="9"/><line x1="9" y1="13" x2="15" y2="13"/><line x1="9" y1="17" x2="12" y2="17"/>
</svg>
<h2>Agent 任务台</h2>
</div>
<div style="display:flex; gap:2px; align-items:center;">
<span id="whoami" class="hidden" style="color:rgba(255,255,255,0.85); font-size:12px; margin-right:6px; max-width:80px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;"></span>
<button class="icon-btn hidden" id="logout-btn" onclick="ui.logout()" title="退出登录">
<svg viewBox="0 0 24 24"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>
</button>
<button class="icon-btn" id="create-session-btn" onclick="ui.openCreate()" title="新建任务">
<svg viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</button>
+1 -1
View File
@@ -32,7 +32,7 @@
<h2>Agent 任务台</h2>
<input type="text" id="login-user" placeholder="用户名" autocomplete="username" autocapitalize="none" autocorrect="off">
<input type="password" id="login-pass" placeholder="密码" autocomplete="current-password">
<button class="primary-btn" id="login-btn" type="submit">登录</button>
<button class="primary-btn" id="login-btn" type="submit" style="width:100%;">登录</button>
<p class="login-error" id="login-error"></p>
</form>
</div>