fix: My Sites, Limits and Current Membership columns above 3 collapse to one column (missing grid utilities)
Les mainteneurs répondent en général sous 1 jour
Évaluation
Cette issue n'a pas encore été évaluée.
Description
What
The columns setting on the My Sites, Limits & Quotas and Current Membership elements builds a utility class from the chosen number (wu-grid-cols-N, sm:wu-grid-cols-N, lg:wu-grid-cols-N, xl:wu-grid-cols-N). assets/css/framework.css only defines some of them. Where the class is missing, the grid has a single column.
With the default columns=4, My Sites shows four columns only from 1280px up and a single column at 1024px and 768px. columns=5 is always a single column. The block-editor preview shows the same single column, because its canvas is narrower than 1280px.
Evidence
Measured on a published account page ([wu_my_sites], default columns=4), by reading the computed grid-template-columns of the grid container:
| Viewport | Grid columns |
|---|---|
| 1440px | 4 |
| 1280px | 4 |
| 1024px | 1 |
| 768px | 1 |
The classes on the element are wu-grid-cols-4 sm:wu-grid-cols-4 xl:wu-grid-cols-4. Only the xl: rule exists for 4.
Utilities that exist today in assets/css/framework.css:
| Variant | Defined for N | Lines |
|---|---|---|
| base | 1, 2, 3 | 667-673 |
sm: |
2, 3, 12 | 1696-1702 |
md: |
2, 3, 4, 5, 6 | 1866-1878 |
lg: |
3, 4 | 1947-1950 |
xl: |
3, 4 | 1959-1962 |
Templates that build the class from a setting:
views/dashboard-widgets/my-sites.php:31: base,sm:andxl:;columnsis 1 to 5 (inc/ui/class-my-sites-element.php:177).views/dashboard-widgets/limits-and-quotas.php:30:lg:;columnsis 1 to 10 (inc/ui/class-limits-element.php:137).views/dashboard-widgets/current-membership.php:116:sm:;columnsis 1 to 5 (inc/ui/class-current-membership-element.php:192).views/checkout/templates/template-selection/clean.php:88andlegacy.php:175:md:, which is fully covered today.
None of this changed in the account work (#2133). It is on main.
Files to modify
assets/css/framework.cssand the regeneratedassets/css/framework.min.css(runpnpm run cleancss; the PR build checks the minified file is current).- Possibly the three dashboard-widget templates above, if the responsive pattern is changed rather than the utilities added.
Files Scope
assets/css/framework.cssassets/css/framework.min.cssviews/dashboard-widgets/my-sites.phpviews/dashboard-widgets/limits-and-quotas.phpviews/dashboard-widgets/current-membership.php
Reference pattern
The existing rules, for example framework.css:667 and framework.css:1866:
.wu-styling :is(.wu-grid-cols-3) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
inside the matching @media (min-width: ...) block for the variants.
Decision to make
Either define every N each template can emit (smallest change, no markup change, keeps "N columns at every width" for the base class), or make the templates responsive so the setting is the maximum, for example wu-grid-cols-1 sm:wu-grid-cols-2 lg:wu-grid-cols-3 xl:wu-grid-cols-N. The second avoids four cramped columns on a phone but changes the layout of sites that already use 2 or 3 columns, so keep existing sites unchanged at N <= 3 unless there is a clear reason.
Verification
- With a customer who owns at least four sites, measure the grid's computed column count at 375, 768, 1024, 1280 and 1440px for
columns1 to 5 on a published page, and in the block-editor preview. - Confirm the limits and current-membership elements at their own maximum
columns. git diffof the stylesheet is additions only.pnpm run cleancssleaves no diff.
Tier
tier:standard. The affected files and reference pattern are known, but the responsive behaviour is a design choice.
aidevops.sh v3.39.189 plugin for OpenCode
- Langage dominant
- PHP
- Étoiles
- 219
- Forks
- 88
- Merge moyen
- 1 j 7 h
- PR mergées (30 j)
- 58
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Ultimate-Multisite/ultimate-multisite
-
bug origin:interactive status:available
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Ultimate-Multisite/ultimate-multisite#2131 ·
Les mainteneurs répondent en général sous 1 jour
-
bug hold-for-review no-auto-dispatch origin:interactive status:available
Difficulté 3/5 1-2 jours Accessibilité débutants 20/100
Ultimate-Multisite/ultimate-multisite#2140 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement hold-for-review no-auto-dispatch origin:interactive status:available
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
Ultimate-Multisite/ultimate-multisite#2137 ·
Les mainteneurs répondent en général sous 1 jour
-
fix: customer site lists stop at 100 sites (BerlinDB default number)Peut-être pris @superdav42 l’a pris aujourd’hui. Ouverteauto-dispatch bug origin:interactive status:in-review tier:standard
Ultimate-Multisite/ultimate-multisite#2136 · 5 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
security(sso): apply mapped-domain token policy to admin-bar magic linksPeut-être pris @superdav42 l’a pris il y a 1 jour. Ouverteauto-dispatch origin:interactive status:in-review tier:standard
Ultimate-Multisite/ultimate-multisite#2125 · 5 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Ultimate-Multisite/ultimate-multisite
Issues similaires
-
35-feedback
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
quantum-php/framework#692 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 70/100
ajeetraina/awesome-docker-sbx#559 ·
-
PHP 8.6 supportOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Saisie des adressesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
pantaflex44/Tiquettes#116 · 1 commentaire ·