halo-dev / theme-earth

Halo 2.0 的默认主题
https://demo.halo.run/?preview-theme=theme-earth
GNU General Public License v3.0
42 stars 54 forks source link

bug反馈:文章页面中,目录被某些元素遮挡 #84

Closed Litbay closed 1 year ago

Litbay commented 1 year ago

版本信息

halo2.6,earth1.4.0

问题描述

如图所示,在文章页面,目录悬浮后会被站点资料的logo(默认使用站点logo)、分类目录的部分元素遮挡
图片1 图片2 图片3

JohnNiang commented 1 year ago

/kind bug

JohnNiang commented 1 year ago

/assign @gengxiaoxiaoxin

f2c-ci-robot[bot] commented 1 year ago

@JohnNiang: GitHub didn't allow me to assign the following users: gengxiaoxiaoxin.

Note that only halo-dev members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. For more information please see the contributor guide

In response to [this](https://github.com/halo-dev/theme-earth/issues/84#issuecomment-1598323942): >/assign @gengxiaoxiaoxin Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
sicode commented 1 year ago

按照最新的代码,手动修复,问题依旧

JohnNiang commented 1 year ago

按照最新的代码,手动修复,问题依旧

因为 Halo 默认情况下是缓存了模板文件的,所以直接修改模板文件是不会生效,需要上传主题包或者重启服务器。

sicode commented 1 year ago

按照最新的代码,手动修复,问题依旧

因为 Halo 默认情况下是缓存了模板文件的,所以直接修改模板文件是不会生效,需要上传主题包或者重启服务器。

已经尝试过重启服务器

ruibaby commented 1 year ago

按照最新的代码,手动修复,问题依旧

因为 Halo 默认情况下是缓存了模板文件的,所以直接修改模板文件是不会生效,需要上传主题包或者重启服务器。

已经尝试过重启服务器

因为在 https://github.com/halo-dev/theme-earth/commit/525ba84ad3381c824843e14b01d82de39037c136 中没有提交构建的 css,所以你直接使用 main 分支的代码应该是不行的。你可以考虑参考文档手动编译一下,或者等待下个版本发布。