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:
@@ -724,7 +724,7 @@ export function ExtractionSettings({
|
|||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
key={`llm-field-${index}`}
|
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)}
|
onClick={() => multiEntityEnabled && toggleLLMFieldMultiEntity(index)}
|
||||||
title={multiEntityEnabled ? (isMulti ? '点击关闭多实体展开' : '点击开启多实体展开') : name}
|
title={multiEntityEnabled ? (isMulti ? '点击关闭多实体展开' : '点击开启多实体展开') : name}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -95,8 +95,15 @@
|
|||||||
@apply bg-[rgba(0,104,74,0.15)] border-[#00684a] text-[#00684a];
|
@apply bg-[rgba(0,104,74,0.15)] border-[#00684a] text-[#00684a];
|
||||||
}
|
}
|
||||||
|
|
||||||
.config-new-page .tag-button.tag-multi-entity {
|
.config-new-page .ant-btn.tag-button.tag-multi-entity {
|
||||||
@apply bg-[#00684a] border-[#00684a] text-white hover:bg-[#005a3f] hover:border-[#005a3f] hover:text-white;
|
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编辑器 */
|
/* JSON编辑器 */
|
||||||
|
|||||||
Reference in New Issue
Block a user