From 83faa5a781b4089af53cc5317b5d80c38724d0d8 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 16 May 2024 12:05:57 +0400 Subject: [PATCH] Editor: Fix the 'DocumentBar' position for long titles (#61691) * Editor: Fix the 'DocumentBar' position for long titles * Add inline comment Co-authored-by: Mamaduka Co-authored-by: afercia Co-authored-by: youknowriad --- packages/editor/src/components/header/style.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/editor/src/components/header/style.scss b/packages/editor/src/components/header/style.scss index 3040362a7bd57..427297161ed8b 100644 --- a/packages/editor/src/components/header/style.scss +++ b/packages/editor/src/components/header/style.scss @@ -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;