- Added explicit z-index stacking order: - Text layer: z-index 2 (top, for selectable text) - Image overlays: z-index 1 (below text layer) - Image overlays on hover: z-index 20 (brings to front) - Enhanced text layer CSS with cross-browser support: - Added -webkit-user-select, -moz-user-select, -ms-user-select - Added pointer-events: auto to text layer spans - Ensures text is selectable on all browsers - Fixed image overlay z-index from 10 to 1 - Prevents blocking text selection - Images still clickable, but text layer takes precedence - Added user-select: auto to body and #app in main.css - Ensures text selection is enabled globally This fixes the issue where text was not selectable in the PDF viewer, especially for digitized/text-based PDFs. The PDF.js text layer now properly overlays the canvas and allows text selection while keeping image overlays interactive. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| vite.config.js | ||