Skip to content

Integrate @embedpdf/plugin-thumbnail and build thumbnail sidebar with toggle#35

Closed
cto-new[bot] wants to merge 1 commit intomasterfrom
feat/add-thumbnail-plugin-sidebar-register-and-sidebar-component
Closed

Integrate @embedpdf/plugin-thumbnail and build thumbnail sidebar with toggle#35
cto-new[bot] wants to merge 1 commit intomasterfrom
feat/add-thumbnail-plugin-sidebar-register-and-sidebar-component

Conversation

@cto-new
Copy link
Copy Markdown
Contributor

@cto-new cto-new bot commented Nov 20, 2025

Summary

Add support for the thumbnail plugin and provide a user-friendly thumbnail sidebar next to the PDF viewport. This enables quick page navigation via thumbnails and a toggle-able UI in the toolbar.

Details

  • Install and pin @embedpdf/plugin-thumbnail to match @embedpdf/core version.
  • Register the ThumbnailPluginPackage in the PDF container with a default width of 120.
  • Implement a new ThumbnailSidebar component using ThumbnailsPane and ThumbImg to render per-page thumbnails with virtualization metadata.
  • Wire the ThumbnailSidebar into the layout using the shadcn-ui Sidebar (right, floating) with a dedicated ThumbnailSidebar child.
  • Add a ThumbnailSidebar to the PDF container layout (below the toolbar) so users see thumbnails alongside the main viewport.
  • Extend the Toolbar to include a Toggle Thumbnails button (Images icon) that toggles the thumbnail sidebar.
  • Update tsconfig to use @types/bun to fix type checks (pre-existing issue addressed as part of repo maintenance).
  • Pin plugin-thumbnail version in package.json (no caret) to align with other embedded plugin versions.

Note

No breaking API changes; UI behavior updated to expose and control a thumbnail sidebar for easier page navigation.

@optimalcharb optimalcharb deleted the feat/add-thumbnail-plugin-sidebar-register-and-sidebar-component branch November 23, 2025 05:05
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