Scope git history to current diagram by default
- History panel defaults to "This diagram" / "All" toggle - "This diagram" filters git log to commits that touched only that diagram's JSON file (git log -- diagrams/0001_*.json) - Automatically switches to "All" when no diagram is open - Restore flow still works per-commit, per-file Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -326,6 +326,14 @@ button:active { background: #1a1a3a; }
|
||||
.git-hash { font-family: monospace; color: #6688cc; font-size: 11px; }
|
||||
.git-msg { color: #bbc; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.git-date { color: #445; font-size: 10px; text-align: right; }
|
||||
.git-scope-btn {
|
||||
font-size: 10px; padding: 2px 8px;
|
||||
background: #111122; border: 1px solid #2a2a44; color: #445566; cursor: pointer;
|
||||
}
|
||||
.git-scope-btn:first-of-type { border-radius: 3px 0 0 3px; }
|
||||
.git-scope-btn:last-of-type { border-radius: 0 3px 3px 0; border-left: none; }
|
||||
.git-scope-btn.active { background: #1a2840; border-color: #334466; color: #88aadd; }
|
||||
.git-scope-btn:disabled { opacity: 0.35; cursor: default; }
|
||||
.git-restore-btn {
|
||||
font-size: 10px; padding: 2px 6px;
|
||||
background: #1a2840; border: 1px solid #334466; border-radius: 3px;
|
||||
|
||||
Reference in New Issue
Block a user