mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-02 05:45:20 +08:00
Place LangBot branding above DingTalk card content
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user