unclecheese / silverstripe-gridfield-betterbuttons

Adds new form actions and buttons to the GridField detail form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Header buttons misaligned in SilverStripe 3.3

purplespider opened this issue · comments

Some CSS tweaks are required in betterbuttons to avoid a messy button alignment within the CMS headers of SilverStripe 3.3:

In SilverStripe 3.3, the "Back" button has been removed, and the breadcrumbs now sit above the page title, resulting in the header having a greater height.

Currently, this results in the "Back" and "New record" buttons aligning themselves to the bottom/top respectively, and the "Back" button being too close to the breadcrumbs and page title.

Looks better if you align the button to the top and add some extra space on the right:

.cms-content-header .cms-content-header-info .cms_backlink{
vertical-align: top;
margin-right: 10px;
}

screen shot 2016-03-21 at 16 31 24

Thanks. If this is a legit fix, please submit a PR!