fix(ui): restore session view tab row
This commit is contained in:
@@ -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). */
|
||||||
|
|||||||
@@ -69,23 +69,23 @@ export function ConversationSession({
|
|||||||
})}
|
})}
|
||||||
{ancestry.length === 0 && <span className={css.crumbCurrent}>{sessionId}</span>}
|
{ancestry.length === 0 && <span className={css.crumbCurrent}>{sessionId}</span>}
|
||||||
</nav>
|
</nav>
|
||||||
{tabs.length > 1 && (
|
|
||||||
<div className={css.tabs} role="tablist">
|
|
||||||
{tabs.map(view => (
|
|
||||||
<button
|
|
||||||
key={view.id}
|
|
||||||
type="button"
|
|
||||||
role="tab"
|
|
||||||
aria-selected={view.id === active?.id}
|
|
||||||
className={clsx(css.tab, view.id === active?.id && css.tabActive)}
|
|
||||||
onClick={() => { actions.setView(view.id) }}
|
|
||||||
>
|
|
||||||
{view.label}
|
|
||||||
</button>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
{tabs.length > 1 && (
|
||||||
|
<div className={css.tabs} role="tablist">
|
||||||
|
{tabs.map(view => (
|
||||||
|
<button
|
||||||
|
key={view.id}
|
||||||
|
type="button"
|
||||||
|
role="tab"
|
||||||
|
aria-selected={view.id === active?.id}
|
||||||
|
className={clsx(css.tab, view.id === active?.id && css.tabActive)}
|
||||||
|
onClick={() => { actions.setView(view.id) }}
|
||||||
|
>
|
||||||
|
{view.label}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</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 })}
|
||||||
|
|||||||
Reference in New Issue
Block a user