Repository navigation
Labels
Description
A long doc title with no spaces runs past the right edge of the page in the doc header instead of wrapping (reported in #2793 (comment)). The editable title is a fit-content span with no wrapping rule:
docs/src/frontend/apps/impress/src/features/docs/doc-header/components/DocTitle.tsx
Lines 240 to 272 in e56c567
| as="span" | |
| role="textbox" | |
| className="--docs--doc-title-input" | |
| contentEditable | |
| defaultValue={titleDisplay || undefined} | |
| onKeyDownCapture={handleKeyDown} | |
| suppressContentEditableWarning={true} | |
| aria-label={`${t('Document title')}`} | |
| aria-multiline={false} | |
| onBlurCapture={(event) => | |
| handleTitleSubmit(event.target.textContent || '') | |
| } | |
| onPasteCapture={handlePaste} | |
| onDropCapture={handleDrop} | |
| $css={css` | |
| &[contenteditable='true']:empty:not(:focus):before { | |
| content: '${untitledDocument}'; | |
| color: var( | |
| --c--contextuals--content--semantic--neutral--tertiary | |
| ); | |
| pointer-events: none; | |
| font-style: italic; | |
| } | |
| font-size: ${ | |
| isSmallMobile | |
| ? 'var(--c--globals--font--sizes--h4)' | |
| : 'var(--c--globals--font--sizes--h2)' | |
| }; | |
| font-weight: 700; | |
| outline: none; | |
| `} | |
| $width="fit-content" | |
| > |
The read-only
DocTitleText has the same problem.Suggested fix: add
overflow-wrap: anywhere; to both titles and min-width: 0 on their flex wrappers so they can shrink.Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
YousefKurchaloy commentedon Oct 15, 2026
id like to work on this