From 6c9520e0a2420164da84159396448aa9f58a9630 Mon Sep 17 00:00:00 2001 From: chenos Date: Sat, 3 Feb 2024 19:41:26 +0800 Subject: [PATCH] fix: layout of plugin settings icons (#3478) --- .../core/client/src/pm/PluginManagerLink.tsx | 135 +++++++++--------- 1 file changed, 70 insertions(+), 65 deletions(-) diff --git a/packages/core/client/src/pm/PluginManagerLink.tsx b/packages/core/client/src/pm/PluginManagerLink.tsx index 273399534..216f017cb 100644 --- a/packages/core/client/src/pm/PluginManagerLink.tsx +++ b/packages/core/client/src/pm/PluginManagerLink.tsx @@ -36,74 +36,79 @@ export const SettingsCenterDropdown = () => { const settings = app.pluginSettingsManager.getList(); const [open, setOpen] = useState(false); return ( - - { - setOpen(open); - }} - arrow={false} - content={ -
- - {settings.map((setting) => ( - - { - e.preventDefault(); - setOpen(false); - navigate(setting.path); + settings.length > 0 && ( + + { + setOpen(open); + }} + arrow={false} + content={ + - } - > -
+ } + > +