[PR #2391] feat: support zoom in preview #2270

Open
opened 2026-02-26 20:33:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2391
Author: @tedliang
Created: 1/15/2026
Status: 🔄 Open

Base: mainHead: feat/preview-zoom


📝 Commits (3)

  • cf9acea feat: support zoom in preview
  • 8990d6d feat: show zoom buttons on top right
  • b163a99 feat: support zoom in embedding

📊 Changes

2 files changed (+54 additions, -8 deletions)

View changed files

📝 packages/ui/components/pdf-viewer/pdf-viewer-konva.tsx (+27 -4)
📝 packages/ui/primitives/pdf-viewer/base.tsx (+27 -4)

📄 Description

Description

Support zoom in preview

Fixes #2080

Changes Made

  • Add scale state
  • Add zoom in button
  • Add zoom out button

Testing Performed

  • Tested on browsers Chrome

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

Additional Notes

Normal:
image

On hover:
image

After zoom:
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/2391 **Author:** [@tedliang](https://github.com/tedliang) **Created:** 1/15/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/preview-zoom` --- ### 📝 Commits (3) - [`cf9acea`](https://github.com/documenso/documenso/commit/cf9aceaa36ca59029315b9f5be9bdcca7efcbf2c) feat: support zoom in preview - [`8990d6d`](https://github.com/documenso/documenso/commit/8990d6d2ecdd5a31651ab7db84f1e0e958a1a609) feat: show zoom buttons on top right - [`b163a99`](https://github.com/documenso/documenso/commit/b163a997f2f0bd1611e3384b82549e3e07c20d8c) feat: support zoom in embedding ### 📊 Changes **2 files changed** (+54 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/ui/components/pdf-viewer/pdf-viewer-konva.tsx` (+27 -4) 📝 `packages/ui/primitives/pdf-viewer/base.tsx` (+27 -4) </details> ### 📄 Description ## Description Support zoom in preview ## Related Issue <!--- If this pull request is related to a specific issue, reference it here using #issue_number. --> <!--- For example, "Fixes #123" or "Addresses #456". --> Fixes #2080 ## Changes Made <!--- Provide a summary of the changes made in this pull request. --> <!--- Include any relevant technical details or architecture changes. --> - Add scale state - Add zoom in button - Add zoom out button ## Testing Performed <!--- Describe the testing that you have performed to validate these changes. --> <!--- Include information about test cases, testing environments, and results. --> - Tested on browsers Chrome ## Checklist <!--- Please check the boxes that apply to this pull request. --> <!--- You can add or remove items as needed. --> - [X] I have tested these changes locally and they work as expected. - [X] I have added/updated tests that prove the effectiveness of these changes. - [X] I have updated the documentation to reflect these changes, if applicable. - [X] I have followed the project's coding style guidelines. - [X] I have addressed the code review feedback from the previous submission, if applicable. ## Additional Notes <!--- Provide any additional context or notes for the reviewers. --> <!--- This might include details about design decisions, potential concerns, or anything else relevant. --> Normal: <img width="727" height="362" alt="image" src="https://github.com/user-attachments/assets/4231dd23-5a3f-4145-a32e-68b2171ea749" /> On hover: <img width="720" height="360" alt="image" src="https://github.com/user-attachments/assets/138729c6-f99b-48bb-b59c-4e690798924a" /> After zoom: <img width="720" height="346" alt="image" src="https://github.com/user-attachments/assets/34a6e548-dc9e-4b38-afe7-0a4ae5ff9deb" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#2270
No description provided.