Module version(s) affected
6.0.0 including 6.1.0-rc1
Description
The toolbar above the page sitetree is wrapping onto two lines because the "Add new" button now says "Add new page", making it wider than before. This pushes the "Batch actions" button onto a second line.
Silverstripe 5 (correct layout)
Silverstripe 6 (buttons wrapping)
Reproduced in both Chrome and Safari.
What Changed
Commit 5336a999 updated the button text to include the record type name, changing "Add new" → "Add new page".
File: templates/SilverStripe/CMS/Controllers/Includes/CMSMain_ContentToolActions.ss:5
<%t SilverStripe\Admin\\LeftAndMain.AddNew 'Add new {name}' name=$getRecord('singleton').i18n_singular_name().lowercase %>
Possible Solutions
Option 1: Would changing it back to use AddNewButton instead of AddNew to restore the shorter "Add new" button label be an acceptable fix? I'm not sure if adding "page" here was explicitly intended.
<%t SilverStripe\Admin\\LeftAndMain.AddNewButton 'Add new' %>
Option 2: Alternatively, does the "Batch actions" button really need it's text label? Could the text be removed from this button so that it is just the icon, like the site tree view button? e.g.:
Happy to provide a PR for the agreed upon solution.
Validations
Module version(s) affected
6.0.0 including 6.1.0-rc1
Description
The toolbar above the page sitetree is wrapping onto two lines because the "Add new" button now says "Add new page", making it wider than before. This pushes the "Batch actions" button onto a second line.
Silverstripe 5 (correct layout)
Silverstripe 6 (buttons wrapping)
Reproduced in both Chrome and Safari.
What Changed
Commit 5336a999 updated the button text to include the record type name, changing "Add new" → "Add new page".
File:
templates/SilverStripe/CMS/Controllers/Includes/CMSMain_ContentToolActions.ss:5Possible Solutions
Option 1: Would changing it back to use
AddNewButtoninstead ofAddNewto restore the shorter "Add new" button label be an acceptable fix? I'm not sure if adding "page" here was explicitly intended.Option 2: Alternatively, does the "Batch actions" button really need it's text label? Could the text be removed from this button so that it is just the icon, like the site tree view button? e.g.:
Happy to provide a PR for the agreed upon solution.
Validations
silverstripe/installer(with any code examples you've provided)