-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix uncollapse link and clicking on images #1705
Conversation
CodSpeed Performance ReportMerging #1705 will not alter performanceComparing Summary
|
(You may already know this but) it's actually correct, because in theory the contents of |
BTW, removing content-visibility:auto introduces a fairly significant performance degradation (maybe 5x slowly popup render time for a big popup). I'll try to think if there's someway to restore it without causing a bug here. |
Fixes #1704
Adds back the collapsed image
[Image]
text and opens the original image in a new tab when clicked on. Opening the original image is important since the canvas can be scaled different (often smaller) and is less useful to open to see in a new tab.content-visibility: auto;
cuts off the preview thumbnail display for collapsed images if it is at the bottom of an entry.openMediaInTab
is similar to the old_getMediaData
yomitan/ext/js/display/display-content-manager.js
Lines 140 to 150 in 76ca08b
Double check on
this._contentManager instanceof DisplayContentManager
because typescript has the memory of a goldfish and forgets that it was checked in the previous if statement.