Skip to content

Commit 988c989

Browse files
authored
ui: fix sticky session diffs header (#21486)
1 parent ae614d9 commit 988c989

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

packages/ui/src/components/session-turn.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,15 @@
9494

9595
[data-slot="session-turn-diffs-header"] {
9696
display: flex;
97-
align-items: baseline;
97+
align-items: center;
9898
gap: 8px;
99+
padding-top: 4px;
99100
padding-bottom: 12px;
101+
position: sticky;
102+
top: var(--sticky-accordion-top, 0px);
103+
z-index: 20;
104+
background-color: var(--background-stronger);
105+
height: 44px;
100106
}
101107

102108
[data-slot="session-turn-diffs-label"] {

packages/ui/src/components/session-turn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ export function SessionTurn(
447447
<div data-component="session-turn-diffs-content">
448448
<Accordion
449449
multiple
450-
style={{ "--sticky-accordion-offset": "40px" }}
450+
style={{ "--sticky-accordion-offset": "44px" }}
451451
value={expanded()}
452452
onChange={(value) => setState("expanded", Array.isArray(value) ? value : value ? [value] : [])}
453453
>

0 commit comments

Comments
 (0)