make plain folder icon not cursed + fix incorrect patch
it was missing the ! before we insert our class
This commit is contained in:
parent
674a627ace
commit
2ad7b3cec1
1 changed files with 2 additions and 2 deletions
|
|
@ -37,8 +37,8 @@ export default definePlugin({
|
|||
// ...
|
||||
// className: cn({[_1]: hasFolderButtonContent, [_2]: !hasFolderButtonContent}),
|
||||
// children: [!hasFolderButtonContent && ...]
|
||||
match: /className:\i\(\)\(\{\[\i\.\i\]:(\i),\[\i\.\i\]:!\1(?=.{0,30}children:\[!\i&&)/,
|
||||
replace: (m, hasFolderButtonContent) => `${m},"vc-plainFolderIcon-plain":${hasFolderButtonContent}`
|
||||
match: /\.slice\(0,4\).+?\]:(\i),\[\i\.\i\]:!\1/,
|
||||
replace: (m, hasFolderButtonContent) => `${m},"vc-plainFolderIcon-plain":!${hasFolderButtonContent}`
|
||||
}
|
||||
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue