mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Reset ExtraClass on ViewModeSelector include
Since silverstripe/silverstripe-admin version 1.11 the include `SilverStripe\\Admin\\LeftAndMain_ViewModeSelector` uses an [ExtraClass parameter](6d1998707d/templates/SilverStripe/Admin/Includes/LeftAndMain_ViewModeSelector.ss (L1)
). When this parameter is not explicitly set it inherits the ExtraClass of the template it's included in. In CMSMain this causes the ViewMode button to stretch.
This commit is contained in:
parent
c4f55581e2
commit
9ca4895f79
@ -28,7 +28,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% include SilverStripe\\Admin\\LeftAndMain_ViewModeSelector SelectID="preview-mode-dropdown-in-content" %>
|
<% include SilverStripe\\Admin\\LeftAndMain_ViewModeSelector SelectID="preview-mode-dropdown-in-content", ExtraClass='' %>
|
||||||
</div>
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user