Update Layout Builder panel size

Created on 13 June 2022, about 3 years ago
Updated 13 April 2023, over 2 years ago

Override Layout Builder off-canvas panel size for all instances of it opening to be appropriate for the navigation and other content rendered inside of it.

Layout Builder Edit Panel too narrow when editing a pattern

There are several instances where you see the off-canvas panel:

adding a section (300px)
adding a layout (300px)
configuring a section (300px)
choosing a pattern/block (300px)
adding a block (900px)
configuring a block (300px)
removing a block (300px)
moving a block (300px)
adding a section to a library (300px)

🐛 Bug report
Status

Active

Version

9.1

Component

Module Core

Created by

🇺🇸United States mariohernandez Los Angeles

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States bladwin

    Right now, only the following Block Admin options are available to be easily overridden without preprocessing multiple $links arrays:

    • Block Configure (patch applies 900px width)
    • Block Move/Remove (patch applies 400px width)
  • Issue was unassigned.
  • Status changed to Needs review over 2 years ago
  • 🇺🇸United States slucero Arkansas
  • 🇺🇸United States slucero Arkansas

    I'm adding this to the Beta 7 release plan to include the patch attached above.

  • Status changed to Needs work over 2 years ago
  • 🇺🇸United States slucero Arkansas

    For now I'm actually removing this from the Beta 7 release out of concern for an inconsistent user experience that may be confusing. As it works now, the edit form for blocks is greatly improved since the off-canvas tray is made wider by default, but the flow for adding a new block still uses the narrow tray for the form. I worry the inconsistency of this experience will be confusing to editors.

    When used with the patch from Modify Layout Builder's use of the off-canvas tray to improve UX of larger block forms Needs work , the experience is more consistent since the add form becomes wider as well.

    Until that issue is resolved and merged in, we may need to explore an alternative solution where the remaining links could be altered and the experience would be more uniformly improved.

  • 🇺🇸United States slucero Arkansas
  • 🇺🇸United States slucero Arkansas

    The new MR I've uploaded alters links for adding and editing Patternkit blocks within Layout Builder. When selecting a Patternkit pattern from the add block list or clicking the "Configure" contextual link on a block within Layout Builder, the edit form within the off-canvas tray should display at a 900 pixel width instead of the default 300. The same links for other blocks should not be affected.

    Filtering down to only affect Patternkit blocks for the edit links is still a work in progress.

  • 🇺🇸United States slucero Arkansas

    This is now ready for review and testing.

  • 🇺🇸United States slucero Arkansas

    I've updated the summary and clarified the expected behaviors:

    In general, if the sidebar try includes the form for editing a pattern (JsonEditor), it should be opened to a wider width (900px). Otherwise, the width should remain unchanged and open to the default width (300px).

    There are several instances where you see the off-canvas panel:

    • adding a section to a layout (300px)
    • configuring a section (300px)
    • selecting a pattern/block to add (300px)
    • adding a non-Patternkit block (300px)
    • configuring a non-Patternkit block (300px)
    • adding a Patternkit block (900px)
    • configuring a Patternkit block (300px)
    • removing a block (300px)
    • moving a block (300px)
  • 🇮🇳India minsharm India

    I have tested it and result looks good to me on both D10 and D11.

    • adding a section (300px)
    • configuring a section (300px)
    • choosing a pattern/block (300px)
    • adding a Patternkit block (900px)
    • configuring a Patternkit block (900px)
    • adding a non-Patternkit block (300px)
    • configuring a non-Patternkit block (300px)
    • removing a block (300px)
    • moving a block (300px)
  • 🇺🇸United States slucero Arkansas
  • 🇺🇸United States slucero Arkansas

    Tested and ready to merge into 9.1.2 release.

  • Pipeline finished with Skipped
    about 1 month ago
    #533260
    • slucero committed e0d684a9 on 9.1.x
      Issue #3285496 by slucero, bladwin, minsharm: Update Layout Builder...
  • 🇺🇸United States slucero Arkansas

    Merged for inclusion in the 9.1.2 release.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024