Repository navigation
Show the metadata in a side panel, so the edit view stays usable on mobile - #25
Merged
Merged
Conversation
… on mobile Below the desktop breakpoint Strapi renders the `right-links` zone in the fixed bar at the bottom of the screen, which can't scroll. The metadata card made that bar taller, together with other plugins' content it could cover the whole screen. Side panels are shown in the sidebar on desktop and in the scrollable drawer on smaller screens. The panel gets the document from Strapi's panel props, so we no longer parse the document ID from the URL. The types come from `@strapi/content-manager`, added as a dev dependency. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pass the document from the side panel props down to `DocumentMetadata` instead of fetching it again, so the metadata matches the active status (draft / published) and locale, and no second request is made. Also remove the mobile divider, which was left dangling when the panel was the last one in the drawer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Below the desktop breakpoint, Strapi renders the
editView.right-linkszone in the fixed bar at the bottom of the screen, which can't scroll. The metadata card made that bar taller, and together with other plugins' content it could cover the whole screen.The metadata is now registered as a side panel with
addEditViewSidePanel()inbootstrap(), as the Content Manager APIs docs describe. Side panels are shown in the sidebar on desktop and in the scrollable drawer on smaller screens.documentIdanddocumentfrom Strapi's panel props, so we no longer parse the URL. It stays hidden while creating or cloning a document, and for a locale that doesn't exist yet.@strapi/content-manageris a dev dependency for the panel types. The imports are type-only, so the build doesn't depend on it.On desktop, the metadata now shows as its own box below "Entry" and not inside it.
🤖 Generated with Claude Code