Add a read-only Files tab browsing a task's worktree

This commit is contained in:
Ian Gulliver
2026-10-15 07:31:53 -07:00
parent 4ca6f88861
commit de5b944a0c
16 changed files with 1460 additions and 123 deletions
+116
View File
@@ -315,6 +315,7 @@ textarea {
.view,
.transcript-view,
.changes-view,
.files-view,
.inbox-view {
flex: 1;
min-height: 0;
@@ -1082,6 +1083,121 @@ pre.diff .meta {
color: var(--muted);
}
.files-header {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 12px;
padding: 8px 16px;
border-bottom: 1px solid var(--border);
}
.crumbs {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 2px;
min-width: 0;
color: var(--muted);
}
.crumb {
padding: 0 2px;
border: none;
background: none;
color: var(--accent);
}
.crumb.current {
color: var(--text);
}
.files-summary {
font-size: 11px;
color: var(--muted);
white-space: nowrap;
}
.files-body {
flex: 1;
overflow: auto;
}
.entries {
display: flex;
flex-direction: column;
padding: 6px 8px 16px;
}
.entry {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 2px 8px;
border: none;
border-radius: 4px;
background: none;
color: var(--text);
text-align: left;
}
button.entry:hover {
background: var(--surface);
}
.entry.dir .entry-name {
color: var(--accent);
}
.entry.other {
color: var(--muted);
}
.entry .symlink,
.entry-meta {
color: var(--muted);
}
.entry-meta {
font-size: 11px;
white-space: nowrap;
}
.entry.ignored .entry-name {
color: var(--muted);
}
pre.file-text {
white-space: pre;
word-break: normal;
padding: 6px 0;
font-size: 11px;
counter-reset: line;
}
pre.file-text .line {
display: block;
min-width: max-content;
padding-right: 10px;
counter-increment: line;
}
pre.file-text .line::before {
content: counter(line);
display: inline-block;
width: 6ch;
margin-right: 12px;
padding-right: 6px;
text-align: right;
color: var(--muted);
border-right: 1px solid var(--border);
user-select: none;
}
.file-cut {
padding: 6px 16px 16px;
}
.scope-tabs {
display: flex;
gap: 4px;