fix(ui): restore session view tab row

This commit is contained in:
_Kerman
2026-07-28 21:13:12 +08:00
parent f3ba3d16be
commit ad0fcf29f5
2 changed files with 23 additions and 25 deletions

View File

@@ -1,6 +1,7 @@
/* Conversation column skeleton: one header row with breadcrumbs and view /* Conversation column skeleton: header (breadcrumb row + tabs) over the view
tabs over the view area, composer InputBar at the bottom. Column area, composer InputBar at the bottom. Column width/squeeze is layout's;
width/squeeze is layout's; this fills its cell. */ this fills its cell. Figma: Header 39:27730 (83px two-row), tabs 13px with
a 3px active bar. */
.root { .root {
display: flex; display: flex;
@@ -25,7 +26,6 @@
.crumbs { .crumbs {
display: flex; display: flex;
flex: 1;
align-items: center; align-items: center;
gap: 4px; gap: 4px;
min-width: 0; min-width: 0;
@@ -72,14 +72,12 @@
cursor: default; cursor: default;
} }
/* View tabs occupy the far-right side of the session-title row. */ /* figma Tab_Group 34:11441: 35px strip, gap 36, pad-left 8, tabs bottom-aligned. */
.tabs { .tabs {
display: flex; display: flex;
flex: none;
align-self: stretch;
align-items: flex-end;
gap: 36px; gap: 36px;
margin-left: 24px; margin-top: 4px;
padding-left: 8px;
} }
/* figma .Tab 34:11442: 13/16 text (figma wt510, rendered 500), gap 8 to the 3px bar (no bottom rounding). */ /* figma .Tab 34:11442: 13/16 text (figma wt510, rendered 500), gap 8 to the 3px bar (no bottom rounding). */

View File

@@ -69,6 +69,7 @@ export function ConversationSession({
})} })}
{ancestry.length === 0 && <span className={css.crumbCurrent}>{sessionId}</span>} {ancestry.length === 0 && <span className={css.crumbCurrent}>{sessionId}</span>}
</nav> </nav>
</div>
{tabs.length > 1 && ( {tabs.length > 1 && (
<div className={css.tabs} role="tablist"> <div className={css.tabs} role="tablist">
{tabs.map(view => ( {tabs.map(view => (
@@ -85,7 +86,6 @@ export function ConversationSession({
))} ))}
</div> </div>
)} )}
</div>
</header>} </header>}
{!blankHero && <div className={css.viewArea}> {!blankHero && <div className={css.viewArea}>
{active !== undefined && renderSlot('conversation.view', {}, { only: active.id })} {active !== undefined && renderSlot('conversation.view', {}, { only: active.id })}