|
@ -77,7 +77,7 @@ const template = html` |
|
|
)} |
|
|
)} |
|
|
</small> |
|
|
</small> |
|
|
</table-cell> |
|
|
</table-cell> |
|
|
<table-cell> |
|
|
|
|
|
|
|
|
<table-cell class="vcenter participants"> |
|
|
${when( |
|
|
${when( |
|
|
x => x.pullRequest!.author != null, |
|
|
x => x.pullRequest!.author != null, |
|
|
html<PullRequestRow>`
|
|
|
html<PullRequestRow>`
|
|
@ -94,20 +94,19 @@ const template = html` |
|
|
html<PullRequestRow>`<git-avatars :avatars="${x => x.pullRequest!.assignees}"></git-avatars>`, |
|
|
html<PullRequestRow>`<git-avatars :avatars="${x => x.pullRequest!.assignees}"></git-avatars>`, |
|
|
)} |
|
|
)} |
|
|
</table-cell> |
|
|
</table-cell> |
|
|
<table-cell>${x => x.pullRequest!.comments}</table-cell> |
|
|
|
|
|
<table-cell class="stats" |
|
|
|
|
|
|
|
|
<table-cell class="vcenter">${x => x.pullRequest!.comments}</table-cell> |
|
|
|
|
|
<table-cell class="vcenter stats" |
|
|
><span class="stat-added">+${x => x.pullRequest!.additions}</span> |
|
|
><span class="stat-added">+${x => x.pullRequest!.additions}</span> |
|
|
<span class="stat-deleted">-${x => x.pullRequest!.deletions}</span></table-cell |
|
|
<span class="stat-deleted">-${x => x.pullRequest!.deletions}</span></table-cell |
|
|
> |
|
|
> |
|
|
<table-cell class="actions"> |
|
|
|
|
|
|
|
|
<table-cell class="vcenter actions"> |
|
|
<a |
|
|
<a |
|
|
href="#" |
|
|
href="#" |
|
|
title="Open Worktree..." |
|
|
title="Open Worktree..." |
|
|
aria-label="Open Worktree..." |
|
|
aria-label="Open Worktree..." |
|
|
@click="${(x, c) => x.onOpenWorktreeClick(c.event)}" |
|
|
@click="${(x, c) => x.onOpenWorktreeClick(c.event)}" |
|
|
><code-icon icon="gl-worktrees-view"></code-icon |
|
|
|
|
|
></a> |
|
|
|
|
|
<a |
|
|
|
|
|
|
|
|
><code-icon icon="gl-worktrees-view"></code-icon></a |
|
|
|
|
|
><a |
|
|
href="#" |
|
|
href="#" |
|
|
title="Switch to Branch..." |
|
|
title="Switch to Branch..." |
|
|
aria-label="Switch to Branch..." |
|
|
aria-label="Switch to Branch..." |
|
@ -147,6 +146,10 @@ const styles = css` |
|
|
font-size: inherit; |
|
|
font-size: inherit; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.vcenter { |
|
|
|
|
|
vertical-align: middle; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.tag { |
|
|
.tag { |
|
|
display: inline-block; |
|
|
display: inline-block; |
|
|
padding: 0.1rem 0.2rem; |
|
|
padding: 0.1rem 0.2rem; |
|
@ -168,11 +171,46 @@ const styles = css` |
|
|
.icon-only { |
|
|
.icon-only { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.participants { |
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.stats { |
|
|
.stats { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.actions { |
|
|
.actions { |
|
|
text-align: right; |
|
|
text-align: right; |
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
width: 6.4rem; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.actions a { |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
display: inline-flex; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
width: 3.2rem; |
|
|
|
|
|
height: 3.2rem; |
|
|
|
|
|
border-radius: 0.5rem; |
|
|
|
|
|
color: inherit; |
|
|
|
|
|
padding: 0.2rem; |
|
|
|
|
|
vertical-align: text-bottom; |
|
|
|
|
|
text-decoration: none; |
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
} |
|
|
|
|
|
.actions a:focus { |
|
|
|
|
|
outline: 1px solid var(--vscode-focusBorder); |
|
|
|
|
|
outline-offset: -1px; |
|
|
|
|
|
} |
|
|
|
|
|
.actions a:hover { |
|
|
|
|
|
background-color: var(--vscode-toolbar-hoverBackground); |
|
|
|
|
|
} |
|
|
|
|
|
.actions a:active { |
|
|
|
|
|
background-color: var(--vscode-toolbar-activeBackground); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.actions a code-icon { |
|
|
|
|
|
font-size: 1.6rem; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.stat-added { |
|
|
.stat-added { |
|
|