Skip to content

Commit 9f5a644

Browse files
authored
Merge pull request #17264 from craftcms/bugfix/17260-slideout-panel-tabs
Tabs in a slideout
2 parents 086a56a + 7d1d411 commit 9f5a644

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- Fixed a bug where setting up two-step verification for an impersonated user would result in the original user getting logged back in. ([#17245](https://github.com/craftcms/cms/pull/17245))
1717
- Fixed a bug where conditionally-hidden entry Title fields were still being validated as required. ([#17249](https://github.com/craftcms/cms/issues/17249))
1818
- Fixed an error that could occur when upgrading to Craft 5. ([#17262](https://github.com/craftcms/cms/pull/17262))
19-
- Fixed styling issues. ([#17237](https://github.com/craftcms/cms/issues/17237), [#17261](https://github.com/craftcms/cms/pull/17261))
19+
- Fixed styling issues. ([#17237](https://github.com/craftcms/cms/issues/17237), [#17261](https://github.com/craftcms/cms/pull/17261), [#17264](https://github.com/craftcms/cms/pull/17264))
2020

2121
## 5.7.5 - 2025-05-06
2222

src/controllers/ElementsController.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,10 @@ public function actionEdit(?ElementInterface $element, ?int $elementId = null):
396396
$canCreateDrafts,
397397
))
398398
->toolbarHtml(
399-
Html::tag('div', options: ['class' => 'flex-grow']) .
399+
// if we're in a slideout, we don't want to add the .flex-grow to the header toolbar
400+
// as it'll mess with the width available for the tabs
401+
// see https://github.com/craftcms/cms/issues/17260
402+
($this->_isSlideout() ? '' : Html::tag('div', options: ['class' => 'flex-grow'])) .
400403
Html::tag('div', options: ['class' => 'activity-container']),
401404
)
402405
->additionalButtonsHtml(fn() => $this->_additionalButtons(

0 commit comments

Comments
 (0)