Skip to content

Commit afc25c5

Browse files
authored
wiki: reuse selectable style for wiki (#35990)
This patch amends #27507. Since #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 😂
1 parent 98eb2b0 commit afc25c5

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

templates/repo/wiki/pages.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</span>
1212
</h2>
1313
{{if $.Permission.IsAdmin}}<div>{{ctx.Locale.Tr "repo.default_branch"}}: {{.Repository.DefaultWikiBranch}}</div>{{end}}
14-
<table class="ui table wiki-pages-list">
14+
<table class="ui table selectable wiki-pages-list">
1515
<tbody>
1616
{{range .Pages}}
1717
<tr>

web_src/css/repo/wiki.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.repository.wiki .wiki-pages-list tr:hover {
2-
background-color: var(--color-hover);
3-
}
4-
51
.repository.wiki .wiki-pages-list .wiki-git-entry {
62
margin-left: 10px;
73
display: none;

0 commit comments

Comments
 (0)