Skip to content

fix(find): preview highlighting, auto-scrolling, and editor alignment (#169)#171

Merged
ThisIs-Developer merged 1 commit into
mainfrom
fix/preview-find-scrolling-highlighting
Jun 10, 2026
Merged

fix(find): preview highlighting, auto-scrolling, and editor alignment (#169)#171
ThisIs-Developer merged 1 commit into
mainfrom
fix/preview-find-scrolling-highlighting

Conversation

@ThisIs-Developer

Copy link
Copy Markdown
Owner

Description

This pull request addresses key issues with the Find & Replace (Ctrl+F) panel:

  1. Highlighting in Preview Mode: Implemented a recursive text-node traversal search that wraps matched text in the preview pane inside <mark class="preview-find-highlight">. MathJax containers and Mermaid elements are ignored to preserve rendering.
  2. Auto-scrolling Preview to Matches: Centering scroll logic has been added via scrollPreviewHighlightIntoView() which scrolls the preview pane to align with the active match index.
  3. Editor Highlights Misalignment: Overrode default Bootstrap style inheritance on <mark> tags by enforcing padding: 0 !important; margin: 0 !important; on .find-highlight classes. This fixes the horizontal offset issue.
  4. Desktop App Synchronization: Propagated the code updates to the desktop resources by running desktop-app/prepare.js.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment Jun 10, 2026 4:35pm

@ThisIs-Developer ThisIs-Developer merged commit 8ea71a8 into main Jun 10, 2026
6 checks passed
@ThisIs-Developer ThisIs-Developer deleted the fix/preview-find-scrolling-highlighting branch June 10, 2026 17:43
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