feat(vcs): reorder Git log columns by dragging headers (#1856)

The Git Log column order was fixed. Column headers can now be dragged to any position, including the commit column, with an insertion line showing where the column lands. It uses pointer events because WebView2 intercepts HTML5 drag events, and the order persists across restarts.

Siblings covered: Esc or losing the window cancels a drag and releases pointer capture, and keyboard column moves skip hidden columns.

Co-authored-by: muutot <92625353+muutot@users.noreply.github.com>
This commit is contained in:
Muu
2026-11-08 22:32:08 +08:00
committed by GitHub
co-authored by muutot
parent fff2c35181
commit f04164d7ee
3 changed files with 375 additions and 137 deletions
+11
View File
@@ -207,6 +207,17 @@
position: relative;
padding-inline-end: 6px;
cursor: grab;
touch-action: none;
}
.columnHeading.dragSource {
cursor: grabbing;
opacity: 0.6;
}
.columnHeading.dropBefore {
box-shadow: inset 2px 0 0 var(--accent);
}
.columnHeading.dropAfter {
box-shadow: inset -2px 0 0 var(--accent);
}
.columnResize {
position: absolute;