Skip to content

Focused field is obscured by nested-entry navigation bar in Contentful Live Preview left panel #1547

@adamrhunter

Description

Describe the bug
When editing a nested content entry from the Contentful Live Preview left panel, Contentful automatically scrolls the focused field into view. However, the field is aligned to the very top of the panel and ends up partially or fully hidden beneath the nested-entry navigation bar at the top of the panel.

This makes the focused field appear clipped or invisible until the user manually scrolls further down.

To Reproduce

  1. Open a page in Contentful using Live Preview that contains a nested reference field.
  2. Select a field in that nested entry using the [Blue]"Edit" button attached to the rendered content (Right content panel)
  3. Observe where the panel scrolls and that the field is obscured by the "< content_id" nav bar.

Expected behavior
The focused field is visible, below the navigation bar.

Screenshots / example

Image

Context (please complete the following information):

  • Live preview SDK version number: 4.9.3
  • GraphQL API

Additional context
There seems no way to programatically set the scroll-offset/scroll-margin-top values that would possibly fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions