|
22 | 22 | } |
23 | 23 | </script> |
24 | 24 |
|
| 25 | +<li class="commit"> |
| 26 | + <div class="action-bar-toggle"> |
| 27 | + <div class="title" on:click={toggleFullCommit}> |
| 28 | + <span class="author-border"> |
| 29 | + <span |
| 30 | + class="author" |
| 31 | + title={`${commit.author.name} <${commit.author.email}>`} |
| 32 | + >{commit.author.initials}</span |
| 33 | + > |
| 34 | + </span> |
| 35 | + {parseMojis(commit.title)} |
| 36 | + </div> |
| 37 | + <div class="actions"> |
| 38 | + <button |
| 39 | + class="octicon button" |
| 40 | + on:click={copyMessage} |
| 41 | + title="Copy commit message to input box"> |
| 42 | + {@html octicons["inbox"].toSVG()} |
| 43 | + </button> |
| 44 | + </div> |
| 45 | + <div class="micro-info"> |
| 46 | + <Badge type="clear">{relativeDate(commit.date)}</Badge> |
| 47 | + {#if commit.branch} |
| 48 | + <Badge type="green">{commit.branch}</Badge> |
| 49 | + {/if} |
| 50 | + </div> |
| 51 | + </div> |
| 52 | + |
| 53 | + <div class="full-commit" class:open> |
| 54 | + <p class="body"> |
| 55 | + <strong>{commit.title}</strong><br /> |
| 56 | + {@html commit.body.replace(/\n/g, "<br />")} |
| 57 | + </p> |
| 58 | + <CommitMeta date={commit.date} hash={commit.hash} /> |
| 59 | + <CommitAuthors author={commit.author} /> |
| 60 | + </div> |
| 61 | +</li> |
| 62 | + |
25 | 63 | <style> |
26 | 64 | :global(.vscode-dark) li.commit:hover { |
27 | | - background-color: rgba(255, 255, 255, 0.2); |
| 65 | + background-color: rgba(255, 255, 255, 0.06); |
28 | 66 | } |
29 | 67 | :global(.vscode-dark) li.commit .title .author { |
30 | 68 | background-color: #222; |
|
33 | 71 | fill: #ccc; |
34 | 72 | } |
35 | 73 | :global(.vscode-light) li.commit:hover { |
36 | | - background-color: rgba(0, 0, 0, 0.2); |
| 74 | + background-color: rgba(0, 0, 0, 0.06); |
37 | 75 | } |
38 | 76 | :global(.vscode-light) li.commit .title .author { |
39 | 77 | background-color: #eee; |
|
137 | 175 | line-height: 1.8em; |
138 | 176 | } |
139 | 177 | </style> |
140 | | - |
141 | | -<li class="commit"> |
142 | | - <div class="action-bar-toggle"> |
143 | | - <div class="title" on:click={toggleFullCommit}> |
144 | | - <span class="author-border"> |
145 | | - <span |
146 | | - class="author" |
147 | | - title={`${commit.author.name} <${commit.author.email}>`}>{commit.author.initials}</span> |
148 | | - </span> |
149 | | - {parseMojis(commit.title)} |
150 | | - </div> |
151 | | - <div class="actions"> |
152 | | - <button |
153 | | - class="octicon button" |
154 | | - on:click={copyMessage} |
155 | | - title="Copy commit message to input box"> |
156 | | - {@html octicons['inbox'].toSVG()} |
157 | | - </button> |
158 | | - </div> |
159 | | - <div class="micro-info"> |
160 | | - <Badge type="clear">{relativeDate(commit.date)}</Badge> |
161 | | - {#if commit.branch} |
162 | | - <Badge type="green">{commit.branch}</Badge> |
163 | | - {/if} |
164 | | - </div> |
165 | | - </div> |
166 | | - |
167 | | - <div class="full-commit" class:open> |
168 | | - <p class="body"> |
169 | | - <strong>{commit.title}</strong><br /> |
170 | | - {@html commit.body.replace(/\n/g, '<br />')} |
171 | | - </p> |
172 | | - <CommitMeta date={commit.date} hash={commit.hash} /> |
173 | | - <CommitAuthors author={commit.author} /> |
174 | | - </div> |
175 | | -</li> |
|
0 commit comments