BIV v1.3.9 fix incorrect positioning of images

This commit is contained in:
_Lighty_ 2020-08-05 08:38:19 +02:00
parent 638b3620d8
commit 677de165fb
2 changed files with 6 additions and 3 deletions

View File

@ -37,7 +37,7 @@ module.exports = (() => {
twitter_username: ''
}
],
version: '1.3.8',
version: '1.3.9',
description: 'Move between images in the entire channel with arrow keys, image zoom enabled by clicking and holding, scroll wheel to zoom in and out, hold shift to change lens size. Image previews will look sharper no matter what scaling you have, and will take up as much space as possible.',
github: 'https://github.com/1Lighty',
github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/BetterImageViewer/BetterImageViewer.plugin.js'
@ -46,7 +46,7 @@ module.exports = (() => {
{
title: 'fixed',
type: 'fixed',
items: ['Fixed zoom snapping sometimes. (Thx Murmurs for reporting this)']
items: ['Fixed incorrect positioning of the image on canary']
}
],
defaultConfig: [
@ -1525,7 +1525,7 @@ module.exports = (() => {
const MaskedLink = WebpackModules.getByDisplayName('MaskedLink');
const renderLinkComponent = props => React.createElement(MaskedLink, props);
const Modals = WebpackModules.getByProps('ModalRoot');
const ImageModalClasses = WebpackModules.getByProps('modal', 'image');
const ImageModalClasses = WebpackModules.find(m => typeof m.image === 'string' && typeof m.modal === 'string' && !m.card) || WebpackModules.getByProps('modal', 'image');
Patcher.before(WebpackModules.getByDisplayName('LazyImageZoomable').prototype, 'render', (_this, _, ret) => {
if (_this.onZoom.__BIV_patched !== patchKey) {
_this.onZoom = (e, n) => {

View File

@ -1,4 +1,7 @@
# [BetterImageViewer](https://1lighty.github.io/BetterDiscordStuff/?plugin=BetterImageViewer "BetterImageViewer") Changelog
### 1.3.9
- Fixed incorrect positioning of the image on canary
### 1.3.8
- Fixed zoom snapping sometimes. (Thx Murmurs for reporting this)