microsoft / microsoft/AdaptiveCards

[Rendering] Table element can't display on mobile

Open
#8,853 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Renderers Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Platforms

iOS, Android

SDK Version

4.14.3

Application Name

Microsoft Teams on mobile

Problem Description

this json on desktop is show well, but on mobile, it's only show title, the table element is a whole blank

Screenshots
image image
Card JSON
{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.6",
    "body": [
        {
            "type": "TextBlock",
            "text": "测试Title",
            "size": "Large",
            "weight": "Bolder",
            "wrap": true
        },
        {
            "type": "Table",
            "gridStyle": "emphasis",
            "columns": [
                {
                    "width": 1
                },
                {
                    "width": 4
                }
            ],
            "rows": [
                {
                    "type": "TableRow",
                    "cells": [
                        {
                            "type": "TableCell",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "等级",
                                    "wrap": true
                                }
                            ],
                            "style": "default"
                        },
                        {
                            "type": "TableCell",
                            "style": "accent",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "重要",
                                    "color": "Attention",
                                    "wrap": true
                                }
                            ]
                        }
                    ]
                },
                
                {
                    "type": "TableRow",
                    "cells": [
                        {
                            "type": "TableCell",
                            "style": "accent",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "触发时间",
                                    "wrap": true
                                }
                            ]
                        },
                        {
                            "type": "TableCell",
                            "style": "accent",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "2024-03-13 10:29:03",
                                    "color": "Attention",
                                    "wrap": true
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "actions": [
        
        {
            "data": {
                "action": "testAlarmId"
            },
            "type": "Action.Submit",
            "title": "报警确认"
        }
    ]
}
Sample Code Language

No response

Sample Code

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the provided Adaptive Card JSON in Microsoft Teams on iOS and Android with SDK version 4.14.3, comparing the desktop and mobile results. Trace the mobile rendering path for the Table element and verify that the table rows and cells render rather than appearing blank on both target platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, ios
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.