Skip to content

Flex field layout tweaks#16303

Merged
brandonkelly merged 1 commit into5.6from
feature/16296-flex-field-tweaks
Dec 10, 2024
Merged

Flex field layout tweaks#16303
brandonkelly merged 1 commit into5.6from
feature/16296-flex-field-tweaks

Conversation

@brandonkelly
Copy link
Copy Markdown
Member

Description

Amends field widths so that:

  • Four column grids are used when the container is >= 800px wide
  • Two-column grids are used when the container is 400–799px wide
  • In two-column grids, 25%-width fields are displayed at 50%-width; all other fields are full-width.

This sortof repurposes the width setting within field layout components. Previously the widths were always taken literally, and would be respected or not based on whether the grid had enough columns to accommodate it. So 50%-width fields were always going to be 50%-width within two/four-column grids, so their physical size could resemble a 25%-width field on smaller screens – which could be too small for the field UI.

Now, width settings determine the maximum physical size of the field, on grids that happen to have room to spare. 25% equates to >=200px; 50% equates to >= 400px; and 75% equates to >=600px. Since a two-column grid is going to have columns that are at most 399px wide, all but 25%-width fields will just end up growing to 100% width.

Related issues

@brandonkelly brandonkelly merged commit 62f46d7 into 5.6 Dec 10, 2024
@brandonkelly brandonkelly deleted the feature/16296-flex-field-tweaks branch December 10, 2024 14:27
brandonkelly added a commit that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant