Skip to content

Commit

Permalink
Editor: Fix the 'DocumentBar' position for long titles (#61691)
Browse files Browse the repository at this point in the history
* Editor: Fix the 'DocumentBar' position for long titles
* Add inline comment

Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: youknowriad <[email protected]>
  • Loading branch information
4 people authored May 16, 2024
1 parent 0bc3914 commit 83faa5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor/src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
flex-grow: 1;
display: flex;
justify-content: center;
// Flex items will, by default, refuse to shrink below a minimum
// intrinsic width. In order to shrink this flexbox item, and
// subsequently truncate child text, we set an explicit min-width.
// See https://dev.w3.org/csswg/css-flexbox/#min-size-auto
min-width: 0;

&.is-collapsed {
display: none;
Expand Down

0 comments on commit 83faa5a

Please sign in to comment.