Skip to content

Commit

Permalink
Remove highlight in repo list (go-gitea#24675)
Browse files Browse the repository at this point in the history
Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/aa5e9f1f-48ff-4e9f-a693-23a34e390760)
After:

![image](https://github.com/go-gitea/gitea/assets/18380374/a4b58a6c-4ea3-4ded-80df-2e650d39a1d3)

private or internal repos have `lock` icon, no need to add highlights to
them.
  • Loading branch information
yp05327 authored May 12, 2023
1 parent bc719f5 commit 4aec1f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions web_src/css/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@
border-bottom: 1px solid var(--color-secondary);
}

.feeds .list ul li.private {
background-color: var(--color-box-body-highlight);
}

.feeds .list ul li .repo-list-link {
padding: 6px 1em;
display: block;
Expand Down
2 changes: 1 addition & 1 deletion web_src/js/components/DashboardRepoList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</div>
<div v-if="repos.length" class="ui attached table segment gt-rounded-bottom">
<ul class="repo-owner-name-list">
<li v-for="repo in repos" :class="{'private': repo.private || repo.internal}" :key="repo.id">
<li v-for="repo in repos" :key="repo.id">
<a class="repo-list-link gt-df gt-ac gt-sb" :href="repo.link">
<div class="item-name gt-df gt-ac gt-f1">
<svg-icon :name="repoIcon(repo)" :size="16" class-name="gt-mr-2"/>
Expand Down

0 comments on commit 4aec1f8

Please sign in to comment.