0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-22 19:43:31 +01:00
silverwind faa7680555
Add "Expand all" / "Collapse expanded" toggle button in diff file boxes
Add a per-file toggle button that expands all collapsed sections at once
and can revert to the original collapsed state. The expand mechanism uses
direct JS fetch instead of htmx, replacing the hx-get/hx-target attributes
on code expander buttons with data-url. Individual expand buttons are also
handled via JS delegated click handlers.

The expand-all uses direction=full to make the backend expand entire gaps
in a single response instead of chunk-by-chunk, significantly reducing
the number of network round-trips for large files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 21:51:33 +01:00
..