Skip to content

fix: restore PDF preview rendering#258

Merged
AmethystLiang merged 1 commit intomainfrom
fix/pdf-preview-rendering
Apr 2, 2026
Merged

fix: restore PDF preview rendering#258
AmethystLiang merged 1 commit intomainfrom
fix/pdf-preview-rendering

Conversation

@AmethystLiang
Copy link
Copy Markdown
Contributor

Problem

PDF previews stopped rendering in the editor because the renderer loaded Blob-backed PDFs through a sandboxed iframe, which can prevent Electron/Chromium's built-in PDF viewer from initializing.

Solution

Replace the PDF iframe path with native embed rendering in both the inline preview and popup dialog, and document why the PDF path uses embed plus an overlay for the open-expanded-preview affordance.

@AmethystLiang AmethystLiang merged commit 0a988d5 into main Apr 2, 2026
1 check passed
@AmethystLiang AmethystLiang deleted the fix/pdf-preview-rendering branch April 2, 2026 00:28
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