A minor improvement for the homepage: when a user is on the homepage and clicks the…
Jump to turn (22)
- 1A minor improvement for the homepage: when a user is on the homepage and clicks
- 2commit /commit
- 3go ahead
- 4Is it worth adding this to all navigation menus when on that page? For example,
- 5To be honest, is it better to leave it as it is?
- 6When I configure the hero as 'false' on the homepage, the featured articles sect
- 7[Request interrupted by user]
- 8When I configure the hero as 'false' on the homepage, the featured articles sect
- 9commit /commit
- 10Do you think the spacing between each adjacent section is appropriate?
- 11is it worth to fix?
- 12but may be the flow and the books is not be configured. some blog may not need t
- 13go ahead
- 14commit /commit
- 152 mobile tests failed: 1) [iPhone SE] › tests/e2e/mobile/mobile-compat.spec.ts:5
- 16commit /commit
- 17check about the code reviews by coderabbit, PR #43
- 18commit /commit
- 19does it need to add or update tests?
- 20OK
- 21reply the comments
- 225 mobile tests failed: 1) [iPhone SE] › tests/e2e/mobile/mobile-compat.spec.ts:2
- User
A minor improvement for the homepage: when a user is on the homepage and clicks the logo, it should scroll back to the top. What do you think, or should I leave it as it is?
Assistant
That's a reasonable UX improvement — it's a common pattern (e.g., many blogs/apps do this). Let me check the current logo implementation to see what's involved.
Assistant
It's a client component that already uses
usePathname— perfect. The implementation is straightforward:What to do: Add an
onClickhandler to the logo that, when , calls and prevents navigation via .