aboutsummaryrefslogtreecommitdiff
path: root/src/components/VencordSettings
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/VencordSettings')
-rw-r--r--src/components/VencordSettings/BackupRestoreTab.tsx1
-rw-r--r--src/components/VencordSettings/ThemesTab.tsx2
-rw-r--r--src/components/VencordSettings/Updater.tsx18
-rw-r--r--src/components/VencordSettings/settingsStyles.css9
4 files changed, 24 insertions, 6 deletions
diff --git a/src/components/VencordSettings/BackupRestoreTab.tsx b/src/components/VencordSettings/BackupRestoreTab.tsx
index 7a3729d..1737470 100644
--- a/src/components/VencordSettings/BackupRestoreTab.tsx
+++ b/src/components/VencordSettings/BackupRestoreTab.tsx
@@ -41,6 +41,7 @@ function BackupRestoreTab() {
Settings Export contains:
<ul>
<li>&mdash; Custom QuickCSS</li>
+ <li>&mdash; Theme Links</li>
<li>&mdash; Plugin Settings</li>
</ul>
</Text>
diff --git a/src/components/VencordSettings/ThemesTab.tsx b/src/components/VencordSettings/ThemesTab.tsx
index 4bd0eb8..83a0870 100644
--- a/src/components/VencordSettings/ThemesTab.tsx
+++ b/src/components/VencordSettings/ThemesTab.tsx
@@ -90,7 +90,7 @@ export default ErrorBoundary.wrap(function () {
return (
<>
- <Card className="vc-settings-card">
+ <Card className="vc-settings-card vc-text-selectable">
<Forms.FormTitle tag="h5">Paste links to .css / .theme.css files here</Forms.FormTitle>
<Forms.FormText>One link per line</Forms.FormText>
<Forms.FormText>Make sure to use the raw links or github.io links!</Forms.FormText>
diff --git a/src/components/VencordSettings/Updater.tsx b/src/components/VencordSettings/Updater.tsx
index 15a8c87..809a3e7 100644
--- a/src/components/VencordSettings/Updater.tsx
+++ b/src/components/VencordSettings/Updater.tsx
@@ -229,11 +229,19 @@ function Updater() {
<Forms.FormTitle tag="h5">Repo</Forms.FormTitle>
- <Forms.FormText>{repoPending ? repo : err ? "Failed to retrieve - check console" : (
- <Link href={repo}>
- {repo.split("/").slice(-2).join("/")}
- </Link>
- )} (<HashLink hash={gitHash} repo={repo} disabled={repoPending} />)</Forms.FormText>
+ <Forms.FormText className="vc-text-selectable">
+ {repoPending
+ ? repo
+ : err
+ ? "Failed to retrieve - check console"
+ : (
+ <Link href={repo}>
+ {repo.split("/").slice(-2).join("/")}
+ </Link>
+ )
+ }
+ {" "}(<HashLink hash={gitHash} repo={repo} disabled={repoPending} />)
+ </Forms.FormText>
<Forms.FormDivider className={Margins.top8 + " " + Margins.bottom8} />
diff --git a/src/components/VencordSettings/settingsStyles.css b/src/components/VencordSettings/settingsStyles.css
index ebc112c..971e9a8 100644
--- a/src/components/VencordSettings/settingsStyles.css
+++ b/src/components/VencordSettings/settingsStyles.css
@@ -57,3 +57,12 @@
color: var(--white-500);
background-color: var(--button-danger-background);
}
+
+.vc-text-selectable,
+.vc-text-selectable :not(a, button) {
+ /* make text selectable, silly discord makes the entirety of settings not selectable */
+ user-select: text;
+
+ /* discord also sets cursor: default which prevents the cursor from showing as text */
+ cursor: initial;
+}