fix(web): stack mobile audit tables and restore sidebar hierarchy
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user