Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[优化]首页改版 #94

Closed
521xueweihan opened this issue Jan 31, 2023 · 5 comments
Closed

[优化]首页改版 #94

521xueweihan opened this issue Jan 31, 2023 · 5 comments
Assignees

Comments

@521xueweihan
Copy link
Member

521xueweihan commented Jan 31, 2023

HelloGitHub 社区首页正在动工改版!将围绕 更方便、增强互动、独特性 的方向进行优化,诚邀您体验后进行反馈。地址:https://hellogithub.com/

目前的改动计划:

  • 更便捷地找到项目:增加标签侧边栏
  • item 样式优化:评论数为零不显示、参与评论的用户头像、月刊标识符、互动数据

如果您有什么建议,欢迎留言讨论。

@521xueweihan 521xueweihan changed the title [优化]首页 item 样式 [优化]首页改版 Feb 1, 2023
@521xueweihan 521xueweihan self-assigned this Feb 1, 2023
@github-actions
Copy link

github-actions bot commented Feb 1, 2023

Branch i94-_优化_首页改版 created!

@WShihan
Copy link

WShihan commented Feb 1, 2023

点击进入项目介绍页面后返回,首页自动刷新到头部,能否考虑进入介绍页面时缓存首页内容。

@aolyang
Copy link

aolyang commented Feb 3, 2023

猜测是不是需要一个缓存location的内容?

const location = useLocation()
const state = location.state as { backgroundLocation?: Location }

<Routes location={state?.backgroundLocation || location}>
    ...
    <Route path={"/repo-details"} element={<RepoDetails />} />
</Routes>

// 返回列表,其实任何页面进入了详情,都是缓存的
navigate(-1)
// 导航去别的页面
navigate("others")

https://dev.to/devmdmamun/create-contextual-modal-navigation-with-react-router-v6-28k2

@zhangzhonghe
Copy link
Collaborator

点击进入项目介绍页面后返回,首页自动刷新到头部,能否考虑进入介绍页面时缓存首页内容。

@WShihan 现在的项目介绍页是在新的页面中打开的,如果要返回上一个页面建议直接把当前页面关闭就可以了。

@521xueweihan
Copy link
Member Author

@WShihan done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 第二期(2023)
Development

No branches or pull requests

4 participants