aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorLewis Crichton <lewi@lewisakura.moe>2023-03-28 17:20:06 +0100
committerGitHub <noreply@github.com>2023-03-28 16:20:06 +0000
commitee794d140f34cadcb6202dfbaeacd04f688fc16b (patch)
tree392e851d084e704610f17875b87bc1e4616d3db9 /src/components
parenta00542b61b4f2c582744268610561fdd9b018204 (diff)
downloadVencord-ee794d140f34cadcb6202dfbaeacd04f688fc16b.tar.gz
Vencord-ee794d140f34cadcb6202dfbaeacd04f688fc16b.tar.bz2
Vencord-ee794d140f34cadcb6202dfbaeacd04f688fc16b.zip
fix: no more theme box obliteration (#707)
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src/components')
-rw-r--r--src/components/VencordSettings/ThemesTab.tsx6
-rw-r--r--src/components/VencordSettings/settingsStyles.css8
2 files changed, 9 insertions, 5 deletions
diff --git a/src/components/VencordSettings/ThemesTab.tsx b/src/components/VencordSettings/ThemesTab.tsx
index b8381f7..f254aff 100644
--- a/src/components/VencordSettings/ThemesTab.tsx
+++ b/src/components/VencordSettings/ThemesTab.tsx
@@ -116,13 +116,9 @@ export default ErrorBoundary.wrap(function () {
</Card>
<Forms.FormTitle tag="h5">Themes</Forms.FormTitle>
<TextArea
- style={{
- padding: ".5em",
- border: "1px solid var(--background-modifier-accent)"
- }}
value={themeText}
onChange={e => setThemeText(e.currentTarget.value)}
- className={TextAreaProps.textarea}
+ className={`${TextAreaProps.textarea} vc-settings-theme-links`}
placeholder="Theme Links"
spellCheck={false}
onBlur={onBlur}
diff --git a/src/components/VencordSettings/settingsStyles.css b/src/components/VencordSettings/settingsStyles.css
index 76064be..709c823 100644
--- a/src/components/VencordSettings/settingsStyles.css
+++ b/src/components/VencordSettings/settingsStyles.css
@@ -38,3 +38,11 @@
color: var(--info-warning-text);
margin-top: 0;
}
+
+.vc-settings-theme-links {
+ /* Needed to fix bad themes that hide certain textarea elements for whatever eldritch reason */
+ display: inline-block !important;
+ color: var(--text-normal) !important;
+ padding: 0.5em;
+ border: 1px solid var(--background-modifier-accent);
+}