Skip to content

feat(frontend): add working Share button in layout header#28

Merged
NianJiuZst merged 3 commits intomainfrom
feat/global-layout
Mar 29, 2026
Merged

feat(frontend): add working Share button in layout header#28
NianJiuZst merged 3 commits intomainfrom
feat/global-layout

Conversation

@NianJiuZst
Copy link
Copy Markdown
Owner

Summary

Add working Share button in the layout header that triggers the share drawer in doc pages.

  • Layout header: re-add Share button that triggers share drawer
  • Share button wired via URL param (?share=true), page auto-opens ShareDrawer
  • Page.tsx: added useSearchParams to detect share param and auto-open drawer
  • Clean URL after opening share drawer (no reload)

- Layout header: re-add Share button that triggers share drawer in pages
- Share button wired via URL param: sets ?share=true, page auto-opens ShareDrawer
- Page.tsx: added useSearchParams to detect share param and auto-open drawer
- Clean URL after opening share drawer (no reload)
- Wire up existing share functionality from page.tsx into layout header
- Remove justify-content: space-between, use flex-shrink + ml-auto for right-side controls
- Reduce header padding and search bar width to prevent cutoff
- Group search + share + toggle on right with ml-auto
@NianJiuZst NianJiuZst merged commit 1d6015b into main Mar 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant