Skip to content

🐛(Bug) Long doc title overflows the page instead of wrapping #2849

Closed

Description

@AntoLC

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:

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.

Activity

  1. added theissue type on Oct 15, 2026
  2. YousefKurchaloy commented on Oct 15, 2026

    @YousefKurchaloy
    Contributor

    id like to work on this

  3. moved this to In Progress in LaSuite Docson Oct 20, 2026
  4. moved this from In Progress to Done in LaSuite Docson Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendgood first issue

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions