From 13989dc0b85564dc17f97c03bf28380e7a7ec6e9 Mon Sep 17 00:00:00 2001 From: Le-King-Fu Date: Sun, 15 Feb 2026 17:25:59 +0000 Subject: [PATCH] fix: replace per-template delete buttons with single delete on selection Show a delete button only when a template is selected, next to the update button. Removes the confusing row of small X icons that could be accidentally clicked. Co-Authored-By: Claude Opus 4.6 --- src/components/import/SourceConfigPanel.tsx | 37 +++++++++------------ 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/src/components/import/SourceConfigPanel.tsx b/src/components/import/SourceConfigPanel.tsx index 59ebb82..0648919 100644 --- a/src/components/import/SourceConfigPanel.tsx +++ b/src/components/import/SourceConfigPanel.tsx @@ -101,27 +101,22 @@ export default function SourceConfigPanel({ ))} {selectedTemplateId && ( - - )} - {configTemplates.length > 0 && ( -
- {configTemplates.map((tpl) => ( - - ))} -
+ <> + + + )}