fix plugins using the image modal (#3368)

This commit is contained in:
sadan4 2025-04-10 10:44:04 -04:00 committed by GitHub
parent 64dadcce4c
commit 8ad33db6c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 3 additions and 52 deletions

View file

@ -13,13 +13,6 @@ export default definePlugin({
authors: [Devs.sadan, Devs.Nuckyz],
description: "Allows you to omit either width or height when opening an image modal",
patches: [
{
find: ".contain,SCALE_DOWN:",
replacement: {
match: /(?<="IMAGE"===\i\?)\i(?=\?)/,
replace: "true"
}
},
{
find: ".dimensionlessImage,",
replacement: {

View file

@ -162,14 +162,6 @@ export default definePlugin({
managedStyle,
patches: [
{
find: ".contain,SCALE_DOWN:",
replacement: {
match: /imageClassName:/,
replace: `id:"${ELEMENT_ID}",$&`
}
},
{
find: ".dimensionlessImage,",
replacement: [