fix(desktop): adjust ui tool diff sticky header offset (#23149)

This commit is contained in:
OpeOginni 2026-04-18 05:31:38 +02:00 committed by GitHub
parent 8a1e85d0c8
commit c0eab9e442
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1269,7 +1269,7 @@ function ToolFileAccordion(props: { path: string; actions?: JSX.Element; childre
<Accordion
multiple
data-scope="apply-patch"
style={{ "--sticky-accordion-offset": "40px" }}
style={{ "--sticky-accordion-offset": "calc(32px + var(--tool-content-gap))" }}
defaultValue={[value()]}
>
<Accordion.Item value={value()}>
@ -2061,7 +2061,7 @@ ToolRegistry.register({
<Accordion
multiple
data-scope="apply-patch"
style={{ "--sticky-accordion-offset": "40px" }}
style={{ "--sticky-accordion-offset": "calc(32px + var(--tool-content-gap))" }}
value={expanded()}
onChange={(value) => setExpanded(Array.isArray(value) ? value : value ? [value] : [])}
>