mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-19 11:27:02 -04:00
UX: Make possibly copy-relevant text in settings copyable
This commit is contained in:
parent
acc874c34f
commit
840da146b9
6 changed files with 31 additions and 11 deletions
|
@ -186,9 +186,10 @@ function ReplacementInput({ replacement, setReplacement, replacementError }) {
|
|||
error={error ?? replacementError}
|
||||
/>
|
||||
{!isFunc && (
|
||||
<>
|
||||
<div className="vc-text-selectable">
|
||||
<Forms.FormTitle>Cheat Sheet</Forms.FormTitle>
|
||||
{Object.entries({
|
||||
"\\i": "Special regex escape sequence that matches identifiers (varnames, classnames, etc.)",
|
||||
"$$": "Insert a $",
|
||||
"$&": "Insert the entire match",
|
||||
"$`\u200b": "Insert the substring before the match",
|
||||
|
@ -200,7 +201,7 @@ function ReplacementInput({ replacement, setReplacement, replacementError }) {
|
|||
{Parser.parse("`" + placeholder + "`")}: {desc}
|
||||
</Forms.FormText>
|
||||
))}
|
||||
</>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<Switch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue