Skip to content

AutoCrud in a flexbox does not use the full width on small screens #3323

@Legioth

Description

@Legioth

Describe the bug

The grid section of AutoCrud shrinks rather than grows when it becomes so narrow that the form is hidden and instead opens as a modal popover.

Slightly wider browser window:
Image

Slightly narrower browser window:
Image

Expected-behavior

Expected that the grid fills the full available width in a narrow browser.

Reproduction

<section className="flex">
  <AutoCrud service={HelloWorldService} model={PersonModel} />
</section>

System Info

Hilla 24.7.0.beta1
Chrome 133

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions