Skip to content

Commit 9820ad4

Browse files
committed
1 parent 2bcf445 commit 9820ad4

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

resources/main.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,24 @@ body {
310310
text-overflow: ellipsis;
311311
margin: 0.5em 0;
312312
}
313+
.diff-row div.file-name-cnt {
314+
display: inline-block;
315+
position:relative;
316+
}
313317
.committed-files .file-name {
314318
display: inline-block;
315319
padding-left: 0.5em;
316320
}
321+
.committed-files a.file-name {
322+
position: absolute;
323+
top: 0;
324+
left: 0;
325+
color: transparent;
326+
}
327+
.committed-files .file-name:hover {
328+
text-decoration: underline;
329+
cursor: pointer;
330+
}
317331
.diff-row .diff-stats {
318332
display: inline-block;
319333
vertical-align: -0.1em;
@@ -324,7 +338,6 @@ body {
324338
vertical-align: middle;
325339
font-family: Consolas, Courier New, monospace;
326340
font-size: 0.9em;
327-
color: lightgray;
328341
text-align: right;
329342
width: 4em;
330343
}

src/browser/detailsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ import * as contracts from '../contracts';
9898
});
9999
$('.file-name', $fileItem).html(stat.path);
100100
let uri = encodeURI('command:git.viewFileCommitDetails?' + JSON.stringify([entry.sha1.full, stat.path, entry.committer.date.toISOString()]))
101-
$('.file-name', $fileItem).attr('href', uri);
101+
$('a.file-name', $fileItem).attr('href', uri);
102102
$files.append($fileItem);
103103
});
104104
}

src/logViewer/htmlGenerator.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ function generateHistoryListContainer(entries: LogEntry[], entriesHtml: string,
7373
<span class="diff-block"></span>
7474
<span class="diff-block"></span>
7575
</span>
76-
<a class="file-name">resources/iframeContent.ts</a>
76+
<div class="file-name-cnt">
77+
<span class="file-name">resources/iframeContent.ts</span>
78+
<a class="file-name">resources/iframeContent.ts</a>
79+
</div>
7780
<div class="dropdown hidden">
7881
<span>&nbsp;[Test]</span>
7982
<div class="dropdown-content">

0 commit comments

Comments
 (0)