fix(ui): match extraction field chips with review settings style, green only for multi-entity

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-24 20:20:32 +08:00
parent 9d6a5364bb
commit 623cf8c427
2 changed files with 10 additions and 3 deletions
@@ -724,7 +724,7 @@ export function ExtractionSettings({
<button
type="button"
key={`llm-field-${index}`}
className={`inline-flex items-center px-3 py-1 rounded-full text-xs font-medium border cursor-pointer transition-all duration-200 ${multiEntityEnabled && isMulti ? 'bg-[#00684a] border-[#00684a] text-white hover:bg-[#005a3f]' : 'bg-gray-100 text-gray-700 border-gray-200 hover:bg-[rgba(0,104,74,0.1)] hover:border-[#00684a] hover:text-[#00684a]'}`}
className={`ant-btn ant-btn-default tag-button ${multiEntityEnabled && isMulti ? 'tag-multi-entity' : ''}`}
onClick={() => multiEntityEnabled && toggleLLMFieldMultiEntity(index)}
title={multiEntityEnabled ? (isMulti ? '点击关闭多实体展开' : '点击开启多实体展开') : name}
>
+9 -2
View File
@@ -95,8 +95,15 @@
@apply bg-[rgba(0,104,74,0.15)] border-[#00684a] text-[#00684a];
}
.config-new-page .tag-button.tag-multi-entity {
@apply bg-[#00684a] border-[#00684a] text-white hover:bg-[#005a3f] hover:border-[#005a3f] hover:text-white;
.config-new-page .ant-btn.tag-button.tag-multi-entity {
background-color: #00684a !important;
border-color: #00684a !important;
color: #fff !important;
}
.config-new-page .ant-btn.tag-button.tag-multi-entity:hover {
background-color: #005a3f !important;
border-color: #005a3f !important;
color: #fff !important;
}
/* JSON编辑器 */