feat(ui): add worktree management toggle to branch panel
Introduces a dedicated section and interactive button for managing repository worktrees within the branch list view. This improves visibility into the overall state of local repositories by grouping related controls. - Adds visual styling and structure for the new worktree group toggle in CSS. - Replaces the old "Manage worktrees" button with a more descriptive, styled component in BranchPanel.svelte.
This commit is contained in:
+14
@@ -2064,6 +2064,20 @@
|
||||
.tag-group-head { display: flex; align-items: center; gap: 6px; }
|
||||
.tag-group-head .branch-group-toggle { flex: 1; min-width: 0; }
|
||||
.tag-group-head .branch-create-toggle { flex-shrink: 0; }
|
||||
.worktree-group-toggle {
|
||||
border-color: rgba(77, 182, 214, 0.12);
|
||||
background: linear-gradient(90deg, rgba(77, 182, 214, 0.055), transparent 72%);
|
||||
}
|
||||
.worktree-group-toggle:hover:not(:disabled) {
|
||||
border-color: rgba(77, 182, 214, 0.25);
|
||||
background: linear-gradient(90deg, rgba(77, 182, 214, 0.1), rgba(77, 182, 214, 0.025));
|
||||
color: var(--color-ink);
|
||||
}
|
||||
.worktree-group-toggle svg { color: #76cde7; }
|
||||
.worktree-group-toggle .branch-group-count {
|
||||
color: #9edced;
|
||||
background: rgba(77, 182, 214, 0.11);
|
||||
}
|
||||
|
||||
.tag-create-form { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto auto; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user