Skip to content

Commit d29e843

Browse files
committed
fix(case-manager): sticky header missing padding and fix key on pivot panel
1 parent 6625a8e commit d29e843

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/app-builder/src/components/CaseManager/PivotsPanel/PivotsPanelContent.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ export function PivotsPanelContent({
169169
const navigationOptions = tableModel.navigationOptions;
170170

171171
return (
172-
<div key={proof.type} className="rounded-xl border border-grey-90 bg-grey-98">
172+
<div
173+
key={`${proof.type}-${proof.object.data['object_id']}`}
174+
className="rounded-xl border border-grey-90 bg-grey-98"
175+
>
173176
<div className="bg-grey-100 px-4 py-2 rounded-t-xl border-b border-grey-90">
174177
{t('cases:ai_review.proof.tab_title', { number: idx + 1 })}
175178
</div>

packages/app-builder/src/components/Cases/CaseDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const CaseDetails = ({
8686
'border-b-grey-90 border-b': !intersection?.isIntersecting,
8787
})}
8888
>
89-
<div className="flex shrink-0 justify-between gap-v2-xs">
89+
<div className={cn('flex shrink-0 justify-between gap-v2-xs', { 'pb-v2-lg': !caseReview })}>
9090
<EditCaseName name={detail.name} id={detail.id} />
9191
<div className="flex shrink-0 items-center gap-2">
9292
{detail.status !== 'closed' ? (

0 commit comments

Comments
 (0)