You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Widget Dashboard: let hosts lower the wide-container column cap through gridSettings.columns #82173
The dashboard's column count is fixed at four on wide containers. WIDGET_DASHBOARD_COLUMN_COUNT is a hard-coded constant, and resolveGridSettings()overwrites whatever columns the host passes with it. The columns field on WidgetGridSettings is kept for persisted payloads but has no effect.
A host that embeds the dashboard in its own surface has no way to run it with fewer columns. A CSS override doesn't work because drag and resize math reads the same columns value the package computes.
What is your proposed solution?
Keep the constant as the default and the ceiling, and let a host lower it:
resolveGridSettings() honors gridSettings.columns, clamped to 1…WIDGET_DASHBOARD_COLUMN_COUNT, falling back to the constant when the field is absent or invalid.
resolveDashboardColumnCount() takes the cap as a parameter, so the responsive steps scale from it: cap → min( 2, cap ) → 1, so a cap of 1 never steps up in the middle band.
useDashboardContainerColumnCount() and Widgets thread gridSettings.columns through.
Docs on the constant and the columns field updated to say "default cap; hosts may lower it".
Nothing changes for current hosts: DEFAULT_GRID already sets columns: 4, so the wp-admin dashboard keeps 4 → 2 → 1. The Layout settings drawer stays as #78732 left it — no Columns control returns. This is a host setting, the same way rowHeight already is.
Activity
Widget Dashboard: honor gridSettings.columns as the column cap
Widget Dashboard: honor gridSettings.columns as the column cap
Widget Dashboard: make the column count a host decision (#82204)