vuepress-theme-hope / vuepress-theme-hope

A vuepress theme with tons of features✨
https://theme-hope.vuejs.press
MIT License
2.05k stars 721 forks source link

[Bug] 升级至 2.0.0-beta.218 和 2.0.0-beta.219 文档首页样式混乱 #3186

Closed herodotus-ecosystem closed 1 year ago

herodotus-ecosystem commented 1 year ago

Checklist

Package name

vuepress-theme-hope@next

Which operating system are you using?

Describe the bug

升级至 2.0.0-beta.218 和 2.0.0-beta.219 后,文档首页的样式混乱。features hover 效果消失,布局改变。

这个问题是升级至最新版本才出现,2.0.0-beta.215 以前均为正常的

image

现在的效果可以在线查看:https://www.herodotus.cn

Additional context

No response

github-actions[bot] commented 1 year ago

Hello @herodotus-cloud. Please provide a minimal reproduction using a GitHub repository or vuepress-theme-hope.github.io/v2-new. Issues marked with needs reproduction will be closed if they have no activity within 3 days.

Mister-Hope commented 1 year ago

https://theme-hope.vuejs.press/demo/project-home.html I don't think anything is broken

herodotus-ecosystem commented 1 year ago

最初我以为是因为我增加了自定义组件导致的这个问题。刚刚我又重新测试一下。首先把我自己增加的内容注释掉,避免干扰。

image

其它所有的测试任何内容都没有变,只是升级 hope版本, 从 2.0.0-Beta.215开始

1. 2.0.0-beta.215

微信截图_20230603173036 微信截图_20230603173022

2. 升级至 2.0.0-beta.216

微信截图_20230603173058 微信截图_20230603173158 微信截图_20230603173140

3. 升级至 2.0.0-beta.217

微信截图_20230603173224 微信截图_20230603173310 微信截图_20230603173254

4. 升级至 2.0.0-beta.218

微信截图_20230603173338

微信截图_20230603173426 微信截图_20230603173415

5. 升级至 2.0.0-beta.219

微信截图_20230603173508 微信截图_20230603173547 微信截图_20230603173528

herodotus-ecosystem commented 1 year ago

找到问题了:

在 2.0.0-Beta.218 及 219 版本中,如果 features 下面条目,不包含 link 像下面一样,样式就会出问题。

features:
  - title: 方案成熟
    icon: slides
    details: 成熟的,完善的,全面的,基于 Spring Authorization Server 的,前后端分离的微服务架构解决方案。

全新建一个 hope 工程,修改 home 内容,删掉一个 link

image

image