]> source.dussan.org Git - gitea.git/commitdiff
Add hover background to wiki list page (#27507) (#27521)
authorGiteabot <teabot@gitea.io>
Sun, 8 Oct 2023 13:48:51 +0000 (21:48 +0800)
committerGitHub <noreply@github.com>
Sun, 8 Oct 2023 13:48:51 +0000 (13:48 +0000)
Backport #27507 by @BLumia

This patch adds a hover background for the wiki row in wiki list page,
which make its behavior more close to repo's file list page.

This patch also make the wiki-git-entry visible on the row is hovered
instead of the cel, so users won't be confused since the 'grid' is not
visible from the web page.

After the patch: (when the wiki named 'Home' is hovered)

![image](https://github.com/go-gitea/gitea/assets/10095765/f6c67c41-ad54-4ce4-a3b1-8c7551396ce0)

Co-authored-by: Gary Wang <git@blumia.net>
web_src/css/repo/wiki.css

index c0a2c0ddb8e49d7af5fb99cd4dbadf4aabce7084..84af37fa2265749d62ce8c97e958b07b35eff5f7 100644 (file)
@@ -1,9 +1,13 @@
+.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;
 }
 
-.repository.wiki .wiki-pages-list td:hover .wiki-git-entry {
+.repository.wiki .wiki-pages-list tr:hover .wiki-git-entry {
   display: inline-block;
 }