mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-25 05:46:13 +00:00
perf: styles of plugin config dialog
This commit is contained in:
@@ -69,13 +69,14 @@ const PluginInstalledComponent = forwardRef<PluginInstalledComponentRef>((props,
|
|||||||
return (
|
return (
|
||||||
<div className={`${styles.pluginListContainer}`}>
|
<div className={`${styles.pluginListContainer}`}>
|
||||||
<Dialog open={modalOpen} onOpenChange={setModalOpen}>
|
<Dialog open={modalOpen} onOpenChange={setModalOpen}>
|
||||||
<DialogContent className="w-[700px] p-6">
|
<DialogContent className="w-[700px] max-h-[80vh] p-0 flex flex-col">
|
||||||
<DialogHeader>
|
<DialogHeader className="px-6 pt-6 pb-2">
|
||||||
<DialogTitle>插件配置</DialogTitle>
|
<DialogTitle>插件配置</DialogTitle>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
{selectedPlugin && (
|
<div className="flex-1 overflow-y-auto px-6">
|
||||||
<PluginForm
|
{selectedPlugin && (
|
||||||
pluginAuthor={selectedPlugin.author}
|
<PluginForm
|
||||||
|
pluginAuthor={selectedPlugin.author}
|
||||||
pluginName={selectedPlugin.name}
|
pluginName={selectedPlugin.name}
|
||||||
onFormSubmit={() => {
|
onFormSubmit={() => {
|
||||||
setModalOpen(false);
|
setModalOpen(false);
|
||||||
@@ -83,9 +84,10 @@ const PluginInstalledComponent = forwardRef<PluginInstalledComponentRef>((props,
|
|||||||
}}
|
}}
|
||||||
onFormCancel={() => {
|
onFormCancel={() => {
|
||||||
setModalOpen(false);
|
setModalOpen(false);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user