fix(ui): compact multi-entity field chips to match tag-button size
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={`ant-btn ${multiEntityEnabled && isMulti ? 'ant-btn-primary' : 'ant-btn-default tag-button'}`}
|
className={`tag-button ${multiEntityEnabled && isMulti ? 'tag-multi-entity' : ''}`}
|
||||||
onClick={() => multiEntityEnabled && toggleLLMFieldMultiEntity(index)}
|
onClick={() => multiEntityEnabled && toggleLLMFieldMultiEntity(index)}
|
||||||
title={multiEntityEnabled ? (isMulti ? '点击关闭多实体展开' : '点击开启多实体展开') : name}
|
title={multiEntityEnabled ? (isMulti ? '点击关闭多实体展开' : '点击开启多实体展开') : name}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -95,6 +95,10 @@
|
|||||||
@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 {
|
||||||
|
@apply bg-[#00684a] border-[#00684a] text-white hover:bg-[#005a3f] hover:border-[#005a3f] hover:text-white;
|
||||||
|
}
|
||||||
|
|
||||||
/* JSON编辑器 */
|
/* JSON编辑器 */
|
||||||
.config-new-page .json-editor {
|
.config-new-page .json-editor {
|
||||||
@apply w-full min-h-[400px] font-mono text-sm leading-relaxed
|
@apply w-full min-h-[400px] font-mono text-sm leading-relaxed
|
||||||
|
|||||||
Reference in New Issue
Block a user