microsoft / microsoft/AdaptiveCards

[Designer] Broken design on Tables - no responsiveness

Open
#9,338 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Problem Description

The expectations of the provided Card JSON is to render a table of three columns, third column always shown, second column shown only on devices of width at least standard, first column shown on devices of width at least narrow.
So in preview mode, for Very Narrow, we should see only third column, for Narrow we should see first and third columns, on Standard and Wide we should see all columns

Card JSON
{
  "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.6",
  "msTeams": {
    "width": "full"
  },
  "body": [
    {
      "type": "TextBlock",
      "text": "Sample design to showcase broken table responsiveness",
      "wrap": true,
      "weight": "Bolder"
    },
    {
      "type": "Table",
      "columns": [
        {
          "width": 1
        },
        {
          "width": 1
        },
        {
          "width": 1
        }
      ],
      "rows": [
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "H1",
                  "wrap": true,
                  "targetWidth": "AtLeast:Narrow"
                }
              ],
              "targetWidth": "AtLeast:Narrow"
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "H2",
                  "wrap": true,
                  "targetWidth": "AtLeast:Standard"
                }
              ],
              "targetWidth": "AtLeast:Standard"
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "H3",
                  "wrap": true
                }
              ]
            }
          ]
        },
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "R1C1",
                  "wrap": true,
                  "targetWidth": "AtLeast:Narrow"
                }
              ],
              "targetWidth": "AtLeast:Narrow"
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "R1C2",
                  "wrap": true,
                  "targetWidth": "AtLeast:Standard"
                }
              ],
              "targetWidth": "AtLeast:Standard"
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "R1C3",
                  "wrap": true
                }
              ]
            }
          ]
        },
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "R2C1",
                  "wrap": true,
                  "targetWidth": "AtLeast:Narrow"
                }
              ],
              "targetWidth": "AtLeast:Narrow"
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "R2C2",
                  "wrap": true,
                  "targetWidth": "AtLeast:Standard"
                }
              ],
              "targetWidth": "AtLeast:Standard"
            },
            {
              "type": "TableCell",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "R2C3",
                  "wrap": true
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "speak": "${root.speak}",
  "msteams": {
    "width": "full"
  }
}
Screenshot
Image

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

The issue names no implementation file or test; start by loading the provided Card JSON in Designer preview at Very Narrow, Narrow, Standard, and Wide widths. Trace the table responsiveness behavior and verify that only the third column appears at Very Narrow, the first and third at Narrow, and all three at Standard and Wide.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.