Skip to content

Support wide/full alignments for the query block container #27589

Closed

Description

@kjellr

The query block currently appears full-width in the editor by default, but it doesn't actually include standard/wide/full width controls for itself:

Screen Shot 2020-12-08 at 1 25 45 PM

This should potentially behave like a group block or template part, where it has its own width settings as a parent block.

Activity

  1. added
    [Type] Enhancement
    [Block] Query Loop
    on Dec 8, 2020
  2. carolinan commented on Dec 25, 2020

    @carolinan
    Contributor

    Compared to the template part and group block, the query does not have an HTML element on the front, and I believe that is intended.
    Would the alignment be passed to the inner block using context?

  3. kjellr commented on Jan 4, 2021

    @kjellr
    ContributorAuthor

    Right, sorry. I think the Query Loop block is the one that would need this control... It does wrap things in a ul on the front end right now:

    Screen Shot 2021-01-04 at 9 07 54 AM

    In any case, the root of the issue is that in my testing (Using TT1 Blocks), setting wide/full for blocks inside of the Query Loop block doesn't make them appear wide/full in the editor:

    Screen Shot 2021-01-04 at 9 05 56 AM

    (same thing happens in the front end, but that's the theme's responsibility to fix until there's a resolution to #26633.)

  4. added
    [Status] In Progress
    on Feb 24, 2021
  5. ntsekouras commented on Apr 27, 2021

    @ntsekouras
    Contributor

    @kjellr is this PR: #30804 enough to close this issue?

  6. kjellr commented on Apr 27, 2021

    @kjellr
    ContributorAuthor

    Yes, I believe that would solve this specific issue. Now that the Query block has its own container, we were also discussing the ability for it to have its own layout controls. Is that still the plan?

  7. ntsekouras commented on Apr 27, 2021

    @ntsekouras
    Contributor

    we were also discussing the ability for it to have its own layout controls. Is that still the plan?

    Yeah it is, although this might be a bit trickier due to some technical details with existing layout property and internal consumption of this prop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Block] Query Loop[Status] In Progress[Type] Enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions