TextReplace: Fix Layout

This commit is contained in:
thororen1234 2026-03-13 09:51:32 -04:00
parent 9ea0a66b36
commit 1b2d9c1b22
No known key found for this signature in database
3 changed files with 10 additions and 12 deletions

View file

@ -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(?=\})/,

View file

@ -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}}\),/,

View file

@ -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")}