feat: 新增用户端个人中心

This commit is contained in:
2026-08-03 12:38:00 +08:00
parent 7747334ea4
commit 20ed4875b8
10 changed files with 355 additions and 176 deletions

View File

@@ -1131,7 +1131,7 @@ textarea:focus-visible {
z-index: 5;
min-height: 82px;
display: grid;
grid-template-columns: 44px minmax(0, 1fr) auto 52px;
grid-template-columns: 44px minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
padding: max(10px, env(safe-area-inset-top)) 14px 10px;
@@ -1140,7 +1140,7 @@ textarea:focus-visible {
}
.header-menu-button,
.header-logout-button,
.header-profile-button,
.history-header button {
min-width: 44px;
height: 44px;
@@ -1177,28 +1177,21 @@ textarea:focus-visible {
white-space: nowrap;
}
.user-summary {
max-width: 92px;
display: grid;
gap: 2px;
color: var(--chat-muted);
font-size: 10px;
line-height: 1.45;
.header-profile-button {
max-width: 120px;
grid-template-columns: 18px minmax(0, auto);
gap: 6px;
padding: 0 11px;
font-size: 12px;
font-weight: 650;
}
.user-summary span {
.header-profile-button span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.header-logout-button {
min-width: 52px;
padding: 0 8px;
font-size: 13px;
font-weight: 600;
}
.session-quota {
min-height: 46px;
display: flex;
@@ -1711,27 +1704,6 @@ textarea:focus-visible {
line-height: 1.75;
}
.growth-profile-dialog {
display: grid;
gap: 14px;
max-height: 60vh;
overflow: auto;
padding-right: 2px;
}
.growth-profile-dialog pre {
margin: 0;
padding: 14px;
border: 1px solid var(--chat-border);
border-radius: 14px;
background: var(--chat-brand-soft);
color: var(--chat-text);
font: inherit;
font-size: 14px;
line-height: 1.75;
white-space: pre-wrap;
}
.help-card-dialog {
display: grid;
gap: 12px;
@@ -1765,64 +1737,6 @@ textarea:focus-visible {
box-shadow: 0 0 0 3px rgba(20, 148, 119, 0.1);
}
.growth-profile-fields,
.recent-topic-summaries {
display: grid;
gap: 10px;
}
.growth-profile-fields p,
.profile-empty {
margin: 0;
color: var(--chat-muted);
font-size: 14px;
line-height: 1.65;
}
.growth-profile-fields strong {
display: block;
margin-bottom: 3px;
color: var(--chat-text);
}
.recent-topic-summaries h3 {
margin: 4px 0 0;
color: var(--chat-text);
font-size: 15px;
}
.recent-topic-summaries article {
padding: 11px 12px;
border: 1px solid var(--chat-border);
border-radius: 13px;
background: #ffffff;
}
.recent-topic-summaries time {
color: var(--chat-weak);
font-size: 11px;
}
.recent-topic-summaries p {
margin: 5px 0 0;
color: var(--chat-muted);
font-size: 13px;
line-height: 1.65;
}
.periodic-report-list .report-title {
color: var(--chat-text);
font-weight: 650;
}
.periodic-report-list pre {
max-height: 260px;
margin: 8px 0 0;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
}
.dialog-actions {
display: grid;
grid-template-columns: 1fr 1fr;
@@ -1867,7 +1781,7 @@ body.drawer-open { overflow: hidden; }
@media (max-width: 390px) {
.chat-header {
grid-template-columns: 44px minmax(0, 1fr) auto 48px;
grid-template-columns: 44px minmax(0, 1fr) auto;
gap: 7px;
padding-right: 10px;
padding-left: 10px;
@@ -1875,8 +1789,7 @@ body.drawer-open { overflow: hidden; }
.assistant-summary h1 { font-size: 15px; }
.assistant-summary p { font-size: 10px; }
.user-summary { max-width: 72px; font-size: 9px; }
.header-logout-button { min-width: 48px; padding: 0 5px; }
.header-profile-button { max-width: 94px; padding: 0 8px; }
.session-quota { margin-right: 12px; margin-left: 12px; }
.session-quota-actions { gap: 5px; }
.quota-link { padding: 0 6px; font-size: 11px; }
@@ -1887,8 +1800,9 @@ body.drawer-open { overflow: hidden; }
}
@media (max-width: 350px) {
.user-summary { display: none; }
.chat-header { grid-template-columns: 44px minmax(0, 1fr) 48px; }
.header-profile-button { width: 44px; grid-template-columns: 1fr; padding: 0; }
.header-profile-button span { display: none; }
.chat-header { grid-template-columns: 44px minmax(0, 1fr) 44px; }
}
@media (max-height: 680px) {