mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 18:37:04 -04:00
fix plugins using the image modal (#3368)
This commit is contained in:
parent
64dadcce4c
commit
8ad33db6c2
5 changed files with 3 additions and 52 deletions
|
@ -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: {
|
||||
|
|
|
@ -162,14 +162,6 @@ export default definePlugin({
|
|||
managedStyle,
|
||||
|
||||
patches: [
|
||||
{
|
||||
find: ".contain,SCALE_DOWN:",
|
||||
replacement: {
|
||||
match: /imageClassName:/,
|
||||
replace: `id:"${ELEMENT_ID}",$&`
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
find: ".dimensionlessImage,",
|
||||
replacement: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue