Skip to content

[diffs/editor] Add responsive for marker popup element#879

Merged
ije merged 1 commit into
beta-1.3from
editor/marker-popup
Jun 24, 2026
Merged

[diffs/editor] Add responsive for marker popup element#879
ije merged 1 commit into
beta-1.3from
editor/marker-popup

Conversation

@ije

@ije ije commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator
Screenshot 2026-06-24 at 02 06 10

Screenshot 2026-06-24 at 02 07 38

@vercel

vercel Bot commented Jun 23, 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 Jun 23, 2026 6:09pm
pierre-docs-diffshub Ready Ready Preview Jun 23, 2026 6:09pm
pierre-docs-trees Ready Ready Preview Jun 23, 2026 6:09pm
pierrejs-diff-demo Ready Ready Preview Jun 23, 2026 6:09pm

Request Review

@ije ije requested a review from mdo June 23, 2026 18:09

@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: d8a7c5a808

ℹ️ 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".

Comment on lines +189 to +190
translate: clamp(8px, var(--marker-x, 8px), calc(100cqw - 8px - 100%))
var(--marker-y, 0);

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 Account for horizontal scroll when clamping popups

In horizontally scrollable editors, --marker-x comes from getCharX() as a content-space coordinate, and the absolute overlay scrolls with [data-code]. Clamping that coordinate to 100cqw caps every marker beyond the first viewport to a fixed content x; after the user scrolls right, the popup's visual position becomes clampedX - scrollLeft, so diagnostics on visible long-line text can render offscreen or far from the hovered marker. The clamp needs to include the current horizontal scroll offset or be applied in viewport coordinates.

Useful? React with 👍 / 👎.

@mdo mdo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, works for me!

@mdo mdo mentioned this pull request Jun 24, 2026
@ije ije merged commit 4694264 into beta-1.3 Jun 24, 2026
8 checks passed
@ije ije deleted the editor/marker-popup branch June 24, 2026 01:19
amadeus pushed a commit that referenced this pull request Jun 24, 2026
[diffs/editor] Updated `editor.css` for marker popups to improve layout and responsiveness
amadeus pushed a commit that referenced this pull request Jun 24, 2026
[diffs/editor] Updated `editor.css` for marker popups to improve layout and responsiveness
tjni pushed a commit to tjni/pierre that referenced this pull request Jun 25, 2026
…r#879)

[diffs/editor] Updated `editor.css` for marker popups to improve layout and responsiveness
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.

2 participants