Highlight viewed files differently in the PR filetree (#24956)

![image](009d8026-15a1-4d18-8548-1c3642978f57)

fixes #24566

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
sebastian-sauer 2023-06-25 02:46:30 +02:00 committed by GitHub
parent 083818cb85
commit 77e449f0be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View file

@ -10,7 +10,7 @@
/>
<a
v-if="item.isFile"
class="file gt-ellipsis"
:class="['file gt-ellipsis', {'viewed': item.file.IsViewed}]"
:href="item.isFile ? '#diff-' + item.file.NameHash : ''"
>{{ item.name }}</a>
<SvgIcon
@ -148,4 +148,8 @@ a:hover {
text-decoration: none;
color: var(--color-text);
}
a.file.viewed {
color: var(--color-text-light-3);
}
</style>