Provide abridged/shortened layout preview mode

Created on 11 May 2019, over 5 years ago
Updated 7 February 2024, 7 months ago

This issue the result of conversations at the Drupaldelphia2019 Layout BoF session.

Problem/Motivation

With long content being previewed in the layout manager, it becomes difficult to navigate/drag/rearrange the layout elements, and with the preview content off, it can be hard to know what a field actually looks like.

Add an option to show abridged/shortened views of the content, so the user gets a sense of the content, without it making the interface unusable.

Proposed resolution

Add a UI element (checkbox or dropdown) to enable the abridged/shortened preview of the content, effecting a CSS change like

.layout__region--content {
    max-height: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    /* whatever else we need to gradient-fade out the bottom of the div if overflowed */
}

This would change the display from:

to this:

Remaining tasks

  1. Add UI element to activate shortened preview
  2. Add CSS/JS to effect the change in the display

User interface changes

  1. Add the checkbox or dropdown (to combine with option to show no preview and just block names)
  2. You could add multiple height options or make it configurable (eg: Show Small/Med/Large/Full preview of content)

API changes

None

Data model changes

None, unless you want to remember the preview state, per layout or site

Release notes snippet

Provide abridged/shortened layout preview mode

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
Layout builderΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡ΊπŸ‡ΈUnited States diamondsea

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

Comments & Activities

Not all content is available!

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

  • πŸ‡³πŸ‡ΏNew Zealand DanielVeza Brisbane, AU

    This seems like a great idea! This issue has been quiet for over 4 years so just giving this a bump to see if others have thoughts on this.

    I'm presonally leaning towards this being a great idea for a contrib project, I'm unsure if it should be in core.

Production build 0.71.5 2024