Skip to content

Comments

implement collapsed*#345

Merged
fat merged 12 commits intomainfrom
fat/collapse-file
Feb 24, 2026
Merged

implement collapsed*#345
fat merged 12 commits intomainfrom
fat/collapse-file

Conversation

@fat
Copy link
Contributor

@fat fat commented Feb 20, 2026

This includes two APIs, a new demo example (which i think is better), and update to docs.

New

  • renderHeaderPrefix to render custom UI at the start of the file header
    (before the filename).
  • options.collapsed to hide file body content while keeping the file
    header visible.

Demo

CleanShot.2026-02-19.at.21.26.34.mp4

@vercel
Copy link

vercel bot commented Feb 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierrejs-diff-demo Ready Ready Preview Feb 21, 2026 4:33am
pierrejs-docs Ready Ready Preview Feb 21, 2026 4:33am

Request Review

* Initial pass at reworking the collapsed state a bit to not depend on
renderRange

* Fix collapsing with virtualizer

* whoops, forgot to fix this

* Remove redundant renderRange setter
Copy link
Member

@amadeus amadeus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! nice work

@fat fat merged commit f7c1ff7 into main Feb 24, 2026
8 checks passed
@fat fat deleted the fat/collapse-file branch February 24, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants