TextReplace: Fix Layout
This commit is contained in:
parent
9ea0a66b36
commit
1b2d9c1b22
3 changed files with 10 additions and 12 deletions
|
|
@ -206,7 +206,7 @@ export default definePlugin({
|
|||
},
|
||||
// Force Role Icon
|
||||
{
|
||||
find: '"role-icon-children"',
|
||||
find: "#{intl::GUILD_COMMUNICATION_DISABLED_ICON_TOOLTIP_BODY}",
|
||||
predicate: () => settings.store.forceRoleIcon,
|
||||
replacement: {
|
||||
match: /(?<=\}\):null\].{0,150}\?2:)0(?=\})/,
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ export default definePlugin({
|
|||
}
|
||||
},
|
||||
{
|
||||
find: '"role-icon-children"',
|
||||
find: "#{intl::GUILD_COMMUNICATION_DISABLED_ICON_TOOLTIP_BODY}",
|
||||
replacement: {
|
||||
// thanks https://github.com/Syncxv/vc-timezones/pull/4
|
||||
match: /(?<=isVisibleOnlyOnHover.+?)id:.{1,11},timestamp.{1,50}}\),/,
|
||||
|
|
|
|||
|
|
@ -205,16 +205,14 @@ function TextReplace({ title, description, rulesArray, isRegex = false }: TextRe
|
|||
onChange={e => onChange(e, index, "onlyIfIncludes")}
|
||||
/>
|
||||
</div>
|
||||
<Flex flexDirection="row" style={{ gap: "0.5em" }}>
|
||||
<div style={{ flex: 0.9 }}>
|
||||
<Select
|
||||
options={scopeOptions}
|
||||
isSelected={e => e === rule.scope}
|
||||
select={e => onChange(e, index, "scope")}
|
||||
serialize={e => e}
|
||||
/>
|
||||
</div>
|
||||
</Flex>
|
||||
<div style={{ marginTop: "0.25em" }}>
|
||||
<Select
|
||||
options={scopeOptions}
|
||||
isSelected={e => e === rule.scope}
|
||||
select={e => onChange(e, index, "scope")}
|
||||
serialize={e => e}
|
||||
/>
|
||||
</div>
|
||||
{isRegex && renderFindError(rule.find)}
|
||||
<Button
|
||||
className={cl("delete-button")}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue