feat(frontend): add working Share button in layout header#28
Merged
NianJiuZst merged 3 commits intomainfrom Mar 29, 2026
Merged
feat(frontend): add working Share button in layout header#28NianJiuZst merged 3 commits intomainfrom
NianJiuZst merged 3 commits intomainfrom
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add working Share button in the layout header that triggers the share drawer in doc pages.