[PR #2541] [MERGED] feat: add inline PDF viewer for task attachments #10067

Closed
opened 2026-04-23 09:22:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2541
Author: @kolaente
Created: 4/4/2026
Status: Merged
Merged: 4/4/2026
Merged by: @kolaente

Base: mainHead: claude/add-pdf-viewer-Rtms5


📝 Commits (5)

  • 63eeb69 feat: add inline PDF viewer for task attachments
  • 239660a fix: leave space for modal close button in PDF viewer
  • e5be3e0 fix: make PDF viewer modal full height
  • 94b00a1 fix: restrict thumbnail blob loading to image attachments
  • c48746d fix: height

📊 Changes

4 files changed (+55 additions, -7 deletions)

View changed files

📝 frontend/src/components/misc/Icon.ts (+2 -0)
📝 frontend/src/components/tasks/partials/Attachments.vue (+28 -3)
📝 frontend/src/components/tasks/partials/FilePreview.vue (+15 -3)
📝 frontend/src/models/attachment.ts (+10 -1)

📄 Description

Click a PDF attachment to view it in a modal using the browser's built-in
PDF viewer (via iframe + blob URL), similar to how image attachments are
already previewed inline. No new dependencies required.

  • Add canPreviewImage() and canPreviewPdf() helpers to attachment model
  • Show PDF-specific icon in file preview thumbnails
  • Register faFilePdf FontAwesome icon
  • Restrict cover image selection to image attachments only

https://claude.ai/code/session_01XDYUghqViTPzNiLLwYH4JL


🔄 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/go-vikunja/vikunja/pull/2541 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 4/4/2026 **Status:** ✅ Merged **Merged:** 4/4/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `claude/add-pdf-viewer-Rtms5` --- ### 📝 Commits (5) - [`63eeb69`](https://github.com/go-vikunja/vikunja/commit/63eeb694e9da2af97d8b5a7b49e09e7b1d2ea4e6) feat: add inline PDF viewer for task attachments - [`239660a`](https://github.com/go-vikunja/vikunja/commit/239660a2a9617d2757726a0664400cc5e366ce9b) fix: leave space for modal close button in PDF viewer - [`e5be3e0`](https://github.com/go-vikunja/vikunja/commit/e5be3e0af0c54285b37c49496aaff79b49219d4b) fix: make PDF viewer modal full height - [`94b00a1`](https://github.com/go-vikunja/vikunja/commit/94b00a157b355ade9a1952874c255b8a2a60e02c) fix: restrict thumbnail blob loading to image attachments - [`c48746d`](https://github.com/go-vikunja/vikunja/commit/c48746da87fe6431fb22c607528f7b462917be98) fix: height ### 📊 Changes **4 files changed** (+55 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/misc/Icon.ts` (+2 -0) 📝 `frontend/src/components/tasks/partials/Attachments.vue` (+28 -3) 📝 `frontend/src/components/tasks/partials/FilePreview.vue` (+15 -3) 📝 `frontend/src/models/attachment.ts` (+10 -1) </details> ### 📄 Description Click a PDF attachment to view it in a modal using the browser's built-in PDF viewer (via iframe + blob URL), similar to how image attachments are already previewed inline. No new dependencies required. - Add canPreviewImage() and canPreviewPdf() helpers to attachment model - Show PDF-specific icon in file preview thumbnails - Register faFilePdf FontAwesome icon - Restrict cover image selection to image attachments only https://claude.ai/code/session_01XDYUghqViTPzNiLLwYH4JL --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 09:22:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#10067