aboutsummaryrefslogtreecommitdiff
path: root/src/components/PluginSettings
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2022-10-30 02:58:11 +0100
committerGitHub <noreply@github.com>2022-10-30 02:58:11 +0100
commit3af9a14a0e78be88c5a048b79187c32796c06a7c (patch)
treea7fa6601555fd03b15da5685df40c3d33cbb89bd /src/components/PluginSettings
parent739b1e47d40d645076bb74d82355f5e45edcd84e (diff)
downloadVencord-3af9a14a0e78be88c5a048b79187c32796c06a7c.tar.gz
Vencord-3af9a14a0e78be88c5a048b79187c32796c06a7c.tar.bz2
Vencord-3af9a14a0e78be88c5a048b79187c32796c06a7c.zip
Patcher: More useful errors with code diffs (#177)
* Patcher: More useful errors with code diffs * Nicer log formatting * PluginCards: ellipsises
Diffstat (limited to 'src/components/PluginSettings')
-rw-r--r--src/components/PluginSettings/index.tsx14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index 6ad9750..1a2e78f 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -145,7 +145,19 @@ function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLe
onChange={toggleEnabled}
disabled={disabled}
value={isEnabled()}
- note={<Text variant="text-md/normal" style={{ height: 40, overflow: "hidden" }}>{plugin.description}</Text>}
+ note={<Text variant="text-md/normal" style={{
+ height: 40,
+ overflow: "hidden",
+ // mfw css is so bad you need whatever this is to get multi line overflow ellipsis to work
+ textOverflow: "ellipsis",
+ display: "-webkit-box", // firefox users will cope (it doesn't support it)
+ WebkitLineClamp: 2,
+ lineClamp: 2,
+ WebkitBoxOrient: "vertical",
+ boxOrient: "vertical"
+ }}>
+ {plugin.description}
+ </Text>}
hideBorder={true}
>
<Flex style={{ marginTop: "auto", width: "100%", height: "100%", alignItems: "center" }}>