Attachment preview: Fix cut-off snapshots

Also:
- Prevent selecting any text within the snapshot
This commit is contained in:
Abe Jellinek 2024-01-20 03:05:32 -05:00 committed by Dan Stillman
parent 832a6f3eff
commit b8f2aaafa9

View file

@ -1290,11 +1290,16 @@ class ReaderPreview extends ReaderInstance {
`, `,
snapshot: ` snapshot: `
html { html {
pointer-events: none; pointer-events: none !important;
user-select: none !important;
min-width: 1024px; min-width: 1024px;
transform: scale(var(--win-scale)); transform: scale(var(--win-scale));
transform-origin: 0 0; transform-origin: 0 0;
overflow-x: hidden; overflow-x: hidden;
}
body {
overflow-y: visible;
}` }`
}; };