0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-11-22 00:06:26 +01:00

wiki: reuse selectable style for wiki (#35990)

This patch amends https://github.com/go-gitea/gitea/pull/27507.

Since https://github.com/go-gitea/gitea/pull/35072, `selectable` css
class can be used for providing hover effect for tables. This patch let
the wiki page be able to make use of that css class, and we can safely
remove the custom css for this purpose.

Behavior is not changed.

----

Side note: I made this patch locally months ago but completely forget to
submit it as a PR 😂
This commit is contained in:
Gary Wang 2025-11-21 05:23:14 +08:00 committed by GitHub
parent 98eb2b0aba
commit afc25c5145
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -11,7 +11,7 @@
</span> </span>
</h2> </h2>
{{if $.Permission.IsAdmin}}<div>{{ctx.Locale.Tr "repo.default_branch"}}: {{.Repository.DefaultWikiBranch}}</div>{{end}} {{if $.Permission.IsAdmin}}<div>{{ctx.Locale.Tr "repo.default_branch"}}: {{.Repository.DefaultWikiBranch}}</div>{{end}}
<table class="ui table wiki-pages-list"> <table class="ui table selectable wiki-pages-list">
<tbody> <tbody>
{{range .Pages}} {{range .Pages}}
<tr> <tr>

View File

@ -1,7 +1,3 @@
.repository.wiki .wiki-pages-list tr:hover {
background-color: var(--color-hover);
}
.repository.wiki .wiki-pages-list .wiki-git-entry { .repository.wiki .wiki-pages-list .wiki-git-entry {
margin-left: 10px; margin-left: 10px;
display: none; display: none;