Teams移动端应用中Adaptive Cards文本格式渲染是否存在兼容性问题?
问题场景与现象
我们基于Bot Framework Webchat开发机器人服务,通过DirectLine渠道同时覆盖Teams与Web端的使用场景。
- 已验证正常的端侧表现:Web端、桌面端Teams的所有交互功能、卡片渲染效果均符合预期
- 存在异常的端侧表现:移动端Teams设备上,Adaptive Cards的格式渲染效果与Web端存在明显差异
- 渲染效果对比参考:包含两组实拍素材,分别对应移动端Teams的异常渲染效果、桌面端Teams的预期渲染效果
现有Adaptive Cards配置
当前问答场景使用的卡片配置代码如下:
{ "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "Container", "id" : "qna_card", "items": [ { "type": "TextBlock", "text": ans[1], "horizontalAlignment": "Left", "color": "Accent", "weight": "Bolder", "size": "Medium" }, { "type": "TextBlock", "text": ans[2], "wrap": true, "color": "Default" }, { "type": "ActionSet", "actions": [ { "type": "Action.OpenUrl", "title": read_more, "url": ans[3], "style": "positive" } ], "horizontalAlignment": "Center" } ] } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "id" : "qna_card_id" }
当前配置使用Adaptive Cards 1.0版本,结构包含标题文本块、正文文本块、居中排列的跳转链接按钮,适配问答卡片的展示逻辑。
内容的提问来源于stack exchange,提问作者Susmitha Konagalla
相关产品推荐
相关产品推荐

