You've already forked DataMate
feat(annotation): 更新标签工作室文本编辑器界面配置
- 修改标注接口配置,启用当前标注和历史记录功能 - 替换提交按钮为标注标签页和菜单功能 - 优化文件卡片布局样式,调整高度和溢出处理 - 更新编辑器卡片样式,改进响应式布局结构
This commit is contained in:
@@ -126,12 +126,12 @@ export default function LabelStudioTextEditor() {
|
||||
interfaces: [
|
||||
"panel",
|
||||
"update",
|
||||
"submit",
|
||||
"controls",
|
||||
"side-column",
|
||||
"annotations:tabs",
|
||||
"annotations:menu",
|
||||
"annotations:add-new",
|
||||
"annotations:delete",
|
||||
"annotations:current",
|
||||
"annotations:history",
|
||||
],
|
||||
selectedAnnotationIndex: 0,
|
||||
allowCreateEmptyAnnotation: true,
|
||||
@@ -291,8 +291,13 @@ export default function LabelStudioTextEditor() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex gap-3 flex-1 min-h-0">
|
||||
<Card title="文件" style={{ width: 320 }} bodyStyle={{ padding: 0, height: "100%", overflow: "auto" }}>
|
||||
<div className="flex items-stretch gap-3 flex-1 min-h-0">
|
||||
<Card
|
||||
title="文件"
|
||||
className="h-full flex flex-col"
|
||||
style={{ width: 320 }}
|
||||
bodyStyle={{ padding: 0, flex: 1, overflow: "auto" }}
|
||||
>
|
||||
<List
|
||||
loading={loadingTasks}
|
||||
dataSource={tasks}
|
||||
@@ -325,7 +330,7 @@ export default function LabelStudioTextEditor() {
|
||||
/>
|
||||
</Card>
|
||||
|
||||
<Card title="编辑器" className="flex-1" bodyStyle={{ padding: 0, height: "100%", overflow: "hidden" }}>
|
||||
<Card title="编辑器" className="flex-1 h-full flex flex-col" bodyStyle={{ padding: 0, flex: 1, overflow: "hidden" }}>
|
||||
<div className="relative h-full">
|
||||
{loadingTaskDetail && (
|
||||
<div className="absolute inset-0 z-10 flex items-center justify-center bg-white/70">
|
||||
|
||||
Reference in New Issue
Block a user