Skip to content

Commit f39d815

Browse files
Jackson KearlRachel Macfarlane
authored andcommitted
Add back "Outdated" label, fixes #1407
1 parent 24569dc commit f39d815

2 files changed

Lines changed: 11 additions & 23 deletions

File tree

preview-src/diff.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function Diff({ comment, hunks, path, outdated=false }: { comment: IComment, hun
1010
return <div className='diff'>
1111
<div className='diffHeader'>
1212
<a className={`diffPath ${outdated ? 'outdated' : ''}`} onClick={() => openDiff(comment)}>{path}</a>
13+
{outdated && <span className='outdatedLabel'>Outdated</span>}
1314
</div>
1415
{hunks.map(hunk => <Hunk hunk={hunk} />)}
1516
</div>;

preview-src/index.css

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,16 @@ body .merged .merged-message > a {
259259
white-space: nowrap;
260260
}
261261

262-
body .comment-container .review-comment-container .pending-label {
263-
border: 1px solid;
264-
border-radius: 2px 2px 2px 2px;
265-
padding: 0.1rem 0.3rem;
266-
font-style: italic;
262+
body .comment-container .review-comment-container .pending-label,
263+
body .diff .diffHeader .outdatedLabel {
264+
border: 1px solid;
265+
border-radius: 2px 2px 2px 2px;
266+
padding: 0.1rem 0.3rem;
267+
font-style: italic;
268+
}
269+
270+
body .diff .diffPath {
271+
margin-right: 4px;
267272
}
268273

269274
body .comment-container .comment-body, .review-body {
@@ -913,24 +918,6 @@ code {
913918
cursor: pointer;
914919
}
915920

916-
.diff .diffHeader .diffPath.outdated:hover {
917-
text-decoration: none;
918-
color: var(--vscode-foreground);
919-
cursor: default;
920-
}
921-
922-
.diff .diffHeader .outdatedLabel {
923-
border-radius: 3px;
924-
box-shadow: none;
925-
color: var(--vscode-badge-foreground);
926-
background: var(--vscode-badge-background);
927-
padding: 2px 6px;
928-
margin-left: 5px;
929-
border-radius: 2px;
930-
line-height: 1;
931-
font-size: 12px;
932-
}
933-
934921
.win32 .diff .diffLine {
935922
font-family: Consolas, Inconsolata, "Courier New", monospace;
936923
}

0 commit comments

Comments
 (0)