Skip to content

[trees][wip] MiddleTruncation from css grid hack to text-overflow: ellipsis#939

Open
SlexAxton wants to merge 1 commit into
mainfrom
alex/trees/text-overflow-ellipsis
Open

[trees][wip] MiddleTruncation from css grid hack to text-overflow: ellipsis#939
SlexAxton wants to merge 1 commit into
mainfrom
alex/trees/text-overflow-ellipsis

Conversation

@SlexAxton

Copy link
Copy Markdown
Contributor

close but not yet ready for prime time

image

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierre-docs-diffs Ready Ready Preview Jul 2, 2026 11:05pm
pierre-docs-diffshub Ready Ready Preview Jul 2, 2026 11:05pm
pierre-docs-trees Ready Ready Preview Jul 2, 2026 11:05pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
pierrejs-diff-demo Skipped Skipped Jul 2, 2026 11:05pm

Request Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 35f90f39ca

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

}

[data-truncate-content='visible'] {
text-overflow: ellipsis;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid double ellipses for equal-priority splits

When MiddleTruncate is used with priority="equal", both segment containers get priority 1 and are allowed to shrink together. Because this new rule gives every truncation segment a native text-overflow: ellipsis, constrained equal-priority splits can now paint an ellipsis on both halves at the seam (for example abc… …xyz); the previous implementation explicitly suppressed one marker in this mode so only one middle marker appeared.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant