Skip to content

Feature Request: Collapsing Gaps for Grid Columns with auto or minmax(auto, 1fr) #10442

@enbee81

Description

@enbee81

When dealing with grid columns that have a width of auto or a min-auto width defined within minmax(), such as minmax(auto, 1fr), it would be beneficial to have an option for collapsing gaps.

Proposed Feature:
Collapsing gaps should function similarly to collapsing margins, where adjacent gaps with an empty column in between would collapse into a single gap.

Example Scenario:
Consider the following example: CodePen Example

In this example, an image is optional. When the image is missing, the current behavior results in a 4rem gap instead of the desired 2rem gap. Collapsing gaps would address this issue, ensuring the layout remains consistent and visually appealing even when certain elements are not present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions