Place LangBot branding above DingTalk card content

This commit is contained in:
fdc310
2026-10-28 03:44:07 +08:00
parent 6a29ffe07f
commit 1b00a7aa40
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ def text_card_components() -> list[dict[str, typing.Any]]:
{
'id': 'root',
'component': 'Column',
'children': ['content', 'langbot-brand'],
'children': ['langbot-brand', 'content'],
'gap': 8,
},
{
@@ -150,7 +150,7 @@ def _build_interaction_messages(
)
children.append(button_id)
children.append('langbot-brand')
children.insert(0, 'langbot-brand')
components.extend(brand_components())
components.insert(0, {'id': 'root', 'component': 'Column', 'children': children, 'gap': 12})
return {'form': form}, components, field_types
+1 -1
View File
@@ -520,7 +520,7 @@ def _dingtalk_a2ui_form(
]
)
children.append(button_id)
children.append('langbot-brand')
children.insert(0, 'langbot-brand')
components.extend(brand_components())
return data, components