From cbc254e959f69cda7f6dfac7c12fa3ce33c369bc Mon Sep 17 00:00:00 2001 From: Cortex <126973723+verysillycat@users.noreply.github.com> Date: Tue, 1 Oct 2024 21:12:29 -0600 Subject: [PATCH 1/2] reflactor(PluginsTab): reformat --- .../PluginSettings/PluginStatCards.tsx | 63 +++++++++++-------- 1 file changed, 38 insertions(+), 25 deletions(-) diff --git a/src/components/PluginSettings/PluginStatCards.tsx b/src/components/PluginSettings/PluginStatCards.tsx index 6423a939d..93afe418c 100644 --- a/src/components/PluginSettings/PluginStatCards.tsx +++ b/src/components/PluginSettings/PluginStatCards.tsx @@ -27,33 +27,46 @@ export function StockPluginsCard({ totalStockPlugins, enabledStockPlugins }) { } export function UserPluginsCard({ totalUserPlugins, enabledUserPlugins }) { - if (totalUserPlugins <= 1) return ( -
-
-
- Total UserPlugins - }> - {tooltipProps => ( - {totalUserPlugins} - )} - + if (totalUserPlugins <= 1) + return ( +
+
+
+ Total UserPlugins + + } + > + {tooltipProps => ( + + + {totalUserPlugins} + + + )} + +
-
- ); - else return ( -
-
-
- Enabled UserPlugins - {enabledUserPlugins} -
-
-
- Total UserPlugins - {totalUserPlugins} + ); + else + return ( +
+
+
+ Enabled UserPlugins + {enabledUserPlugins} +
+
+
+ Total UserPlugins + {totalUserPlugins} +
-
- ); + ); } From 182377fd98bc4f57a6689221132fa46b887d1791 Mon Sep 17 00:00:00 2001 From: panbread <93918332+Panniku@users.noreply.github.com> Date: Wed, 2 Oct 2024 11:26:12 +0400 Subject: [PATCH 2/2] fix(PluginCard): make infocard consistent (#44) --- src/components/PluginSettings/index.tsx | 2 +- src/components/PluginSettings/styles.css | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index 0ccdea806..8e23d0bc1 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -346,7 +346,7 @@ export default function PluginSettings() {