Skip to content

Commit

Permalink
Fix new header allowing their single-child's overflowing (#7796) (#7798)
Browse files Browse the repository at this point in the history
* Fix new header allowing their single-child's overflowing



* Changeset file for PR #7796 created/updated

---------



(cherry picked from commit 8d3f8d5)

Signed-off-by: Miki <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 22, 2024
1 parent 179b37a commit 26ebcd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/7796.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Fix new header allowing their single-child's overflowing ([#7796](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7796))
4 changes: 4 additions & 0 deletions src/core/public/chrome/ui/header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
& > .euiHeaderSection {
gap: $euiSizeS;

&:only-child {
width: 100%;
}

// stylelint-disable-next-line @osd/stylelint/no_modifying_global_selectors
& > .euiHeaderSectionItem:empty {
display: none;
Expand Down

0 comments on commit 26ebcd1

Please sign in to comment.