fix(web): stack mobile audit tables and restore sidebar hierarchy
Independent Staging Quality Gate / validate (push) Successful in 9m27s
Independent Staging Quality Gate / publish (push) Successful in 7m40s

Narrow screens were wrapping 已执行 into a glyph column and painting every sidebar row the same gray, so history looked like top-level chrome.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-08-22 09:57:06 +08:00
co-authored by Cursor
parent 41fde85647
commit 92558ee61d
7 changed files with 217 additions and 62 deletions
+12 -17
View File
@@ -168,7 +168,7 @@ export function AppSidebar({
disabled={newChatDisabled}
onClick={handleNewChat}
>
<SquarePen aria-hidden="true" />
<SquarePen size={18} strokeWidth={1.75} aria-hidden="true" />
{showExpandedContent ? <span>{creatingSession ? "正在创建" : "新建对话"}</span> : null}
</SidebarMenuButton>
</SidebarMenuItem>
@@ -179,7 +179,7 @@ export function AppSidebar({
tooltip="我的报告"
onClick={handleOpenReports}
>
<FileText aria-hidden="true" />
<FileText size={18} strokeWidth={1.75} aria-hidden="true" />
{showExpandedContent ? <span></span> : null}
</SidebarMenuButton>
</SidebarMenuItem>
@@ -192,7 +192,7 @@ export function AppSidebar({
<SidebarGroup className="chart-nav" aria-label="星盘列表">
<div className="session-nav-header">
<SidebarGroupLabel className="sidebar-label">
<Users aria-hidden="true" />
<Users size={18} strokeWidth={1.75} aria-hidden="true" />
</SidebarGroupLabel>
<button
@@ -201,10 +201,10 @@ export function AppSidebar({
aria-label="添加星盘"
onClick={onAddChart}
>
<UserPlus aria-hidden="true" />
<UserPlus size={18} strokeWidth={1.75} aria-hidden="true" />
</button>
</div>
<SidebarGroupContent>
<SidebarGroupContent className="sidebar-nested">
{charts.length === 0 ? <p className="sidebar-empty"></p> : (
<div className="chart-nav-list">
{charts.map((chart) => (
@@ -225,11 +225,11 @@ export function AppSidebar({
<SidebarGroup className="session-nav" aria-label="收藏对话">
<details className="sidebar-section" open>
<summary className="sidebar-section-summary">
<Star aria-hidden="true" />
<Star size={18} strokeWidth={1.75} aria-hidden="true" />
<span></span>
<ChevronDown className="sidebar-section-chevron" aria-hidden="true" />
<ChevronDown className="sidebar-section-chevron" size={16} strokeWidth={1.75} aria-hidden="true" />
</summary>
<SidebarGroupContent>
<SidebarGroupContent className="sidebar-nested">
{favoriteSessions.length === 0 ? <p className="sidebar-empty"></p> : (
<SidebarMenu className="session-list">
{favoriteSessions.map((session, index) => renderSession(session, index))}
@@ -242,16 +242,11 @@ export function AppSidebar({
<SidebarGroup className="session-nav" aria-label={sessionControls.showingArchived ? "归档记录" : "历史对话"}>
<details className="sidebar-section" open>
<summary className="sidebar-section-summary" ref={historyHeadingRef} tabIndex={-1}>
<Clock3 aria-hidden="true" />
<Clock3 size={18} strokeWidth={1.75} aria-hidden="true" />
<span>{sessionControls.showingArchived ? "归档记录" : "历史对话"}</span>
<ChevronDown className="sidebar-section-chevron" aria-hidden="true" />
<ChevronDown className="sidebar-section-chevron" size={16} strokeWidth={1.75} aria-hidden="true" />
</summary>
<div className="session-nav-header session-nav-header-inline">
<button className="session-nav-toggle" type="button" onClick={sessionControls.onToggleArchivedView}>
{sessionControls.showingArchived ? "返回" : `归档 ${sessionControls.archivedCount}`}
</button>
</div>
<SidebarGroupContent>
<SidebarGroupContent className="sidebar-nested">
{historySessions.length === 0 ? <p className="sidebar-empty"></p> : (
<SidebarMenu className="session-list">
{historySessions.map((session, index) => renderSession(session, favoriteSessions.length + index))}
@@ -270,7 +265,7 @@ export function AppSidebar({
aria-label="聊天记录"
onClick={handleExpandHistory}
>
<MessageSquareText aria-hidden="true" />
<MessageSquareText size={18} strokeWidth={1.75} aria-hidden="true" />
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>