DynamicImageModalAPI: Include new image modal too
This commit is contained in:
parent
11715da9e0
commit
0f384419d5
1 changed files with 8 additions and 1 deletions
|
@ -14,11 +14,18 @@ export default definePlugin({
|
|||
description: "Allows you to omit either width or height when opening an image modal",
|
||||
patches: [
|
||||
{
|
||||
find: "SCALE_DOWN:",
|
||||
find: ".contain,SCALE_DOWN:",
|
||||
replacement: {
|
||||
match: /(?<="IMAGE"===\i\?)\i(?=\?)/,
|
||||
replace: "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
find: ".dimensionlessImage,",
|
||||
replacement: {
|
||||
match: /(?<="IMAGE"===\i&&\(\i=)\i(?=\?)/,
|
||||
replace: "true"
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue