|
|
@ -77,7 +77,7 @@ const template = html` |
|
|
|
)} |
|
|
|
</small> |
|
|
|
</table-cell> |
|
|
|
<table-cell> |
|
|
|
<table-cell class="vcenter participants"> |
|
|
|
${when( |
|
|
|
x => x.pullRequest!.author != null, |
|
|
|
html<PullRequestRow>`
|
|
|
@ -94,20 +94,19 @@ const template = html` |
|
|
|
html<PullRequestRow>`<git-avatars :avatars="${x => x.pullRequest!.assignees}"></git-avatars>`, |
|
|
|
)} |
|
|
|
</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-deleted">-${x => x.pullRequest!.deletions}</span></table-cell |
|
|
|
> |
|
|
|
<table-cell class="actions"> |
|
|
|
<table-cell class="vcenter actions"> |
|
|
|
<a |
|
|
|
href="#" |
|
|
|
title="Open Worktree..." |
|
|
|
aria-label="Open Worktree..." |
|
|
|
@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="#" |
|
|
|
title="Switch to Branch..." |
|
|
|
aria-label="Switch to Branch..." |
|
|
@ -147,6 +146,10 @@ const styles = css` |
|
|
|
font-size: inherit; |
|
|
|
} |
|
|
|
|
|
|
|
.vcenter { |
|
|
|
vertical-align: middle; |
|
|
|
} |
|
|
|
|
|
|
|
.tag { |
|
|
|
display: inline-block; |
|
|
|
padding: 0.1rem 0.2rem; |
|
|
@ -168,11 +171,46 @@ const styles = css` |
|
|
|
.icon-only { |
|
|
|
} |
|
|
|
|
|
|
|
.participants { |
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
|
|
|
|
.stats { |
|
|
|
} |
|
|
|
|
|
|
|
.actions { |
|
|
|
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 { |
|
|
|