Skip to content

Show the metadata in a side panel, so the edit view stays usable on mobile - #25

Merged
fxm90 merged 4 commits into
mainfrom
fix/side-panel
Dec 6, 2026
Merged

fxm90 merged 4 commits into
mainfrom
fix/side-panel

Conversation

@fxm90

@fxm90 fxm90 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Below the desktop breakpoint, Strapi renders the editView.right-links zone 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() in bootstrap(), as the Content Manager APIs docs describe. Side panels are shown in the sidebar on desktop and in the scrollable drawer on smaller screens.

  • Strapi now draws the box and the "Metadata" title, so the card's own border, header and icon are gone.
  • The panel gets documentId and document from 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.
  • On mobile, a divider below the content separates the panel from the next one.
  • @strapi/content-manager is 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

… 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>
@fxm90 fxm90 self-assigned this Dec 5, 2026
fxm90 and others added 2 commits December 6, 2026 09:04
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>
@fxm90
fxm90 marked this pull request as ready for review December 6, 2026 10:19
@fxm90
fxm90 merged commit ad4cc1d into main Dec 6, 2026
1 check passed
@fxm90
fxm90 deleted the fix/side-panel branch December 6, 2026 10:19
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