From afc25c514501ec55ccecc773dc72abf1bc5831df Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Fri, 21 Nov 2025 05:23:14 +0800 Subject: [PATCH] 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 :joy: --- templates/repo/wiki/pages.tmpl | 2 +- web_src/css/repo/wiki.css | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/templates/repo/wiki/pages.tmpl b/templates/repo/wiki/pages.tmpl index 5ceb8a4d5b..120c1cda32 100644 --- a/templates/repo/wiki/pages.tmpl +++ b/templates/repo/wiki/pages.tmpl @@ -11,7 +11,7 @@ {{if $.Permission.IsAdmin}}
{{ctx.Locale.Tr "repo.default_branch"}}: {{.Repository.DefaultWikiBranch}}
{{end}} - +
{{range .Pages}} diff --git a/web_src/css/repo/wiki.css b/web_src/css/repo/wiki.css index 144cb1206c..831a7752c3 100644 --- a/web_src/css/repo/wiki.css +++ b/web_src/css/repo/wiki.css @@ -1,7 +1,3 @@ -.repository.wiki .wiki-pages-list tr:hover { - background-color: var(--color-hover); -} - .repository.wiki .wiki-pages-list .wiki-git-entry { margin-left: 10px; display: none;