microsoft / AdaptiveCards-Mobile

MIT License
8 stars 13 forks source link

[Rendering] Iphone cuts text in adaptive cards on Microsoft Teams #151

Closed sueess closed 1 day ago

sueess commented 4 weeks ago

Target Platforms

iOS

SDK Version

1.5

Application Name

Microsoft Teams

Problem Description

Over the last year we have quite frequently problems with the iOS rendering of adaptive cards on MS Teams. At the moment text is just cut instead of a proper wrap (multiple letters are missing, see screenshots). The screenshots were made on a iPhone 13, IOS 17.5.1.

Screenshots

img3 img2

Card JSON

{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.5",
  "body": [
    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "width": "stretch",
          "items": [
            {
              "type": "TextBlock",
              "text": "Learning Package...",
              "wrap": true,
              "fontType": "Default",
              "size": "Small"
            }
          ]
        },
        {
          "type": "Column",
          "width": "auto",
          "items": [
            {
              "type": "TextBlock",
              "text": "2/5",
              "fontType": "Default",
              "size": "Small",
              "horizontalAlignment": "Right"
            }
          ]
        }
      ]
    },
    {
      "type": "TextBlock",
      "text": "QUESTION",
      "height": "stretch",
      "wrap": true
    },
    {
      "type": "Input.ChoiceSet",
      "id": "sendText",
      "style": "expanded",
      "choices": [
        {
          "title": "A)",
          "value": "ANSWER"
        },
        {
          "title": "B)",
          "value": "ANSWER"
        },
        {
          "title": "C)",
          "value": "ANSWER"
        }
      ],
      "isMultiSelect": true,
      "wrap": true
    },
    {
      "type": "Container",
      "items": [
        {
          "type": "ActionSet",
          "actions": [
            {
              "type": "Action.Submit",
              "title": "Send",
              "data": {
                "msteams": {
                  "type": "messageBack",
                  "displayText": "Send",
                  "value": {
                    "sendText": ""
                  }
                }
              },
              "msteams": {
                "feedback": {
                  "hide": true
                }
              }
            }
          ]
        }
      ]
    }
  ]
}

Sample Code Language

No response

Sample Code

No response

ardlank commented 1 day ago

Adaptive Cards is now a semi private repo

sschoeb commented 1 day ago

@ardlank should we reopen all the closed ones in the other repo?

sueess commented 1 day ago

Hi @ardlank, since nobody cares about the issues we report, it's probably a good idea to close that repository. The problem is, that the other repo is as useless as this one. There are so many bugs we are reporting and customers are complaining about, but nobody is taking care. Since you are taking some action right now, are you also improving the way your work in the other repository, or should we stop reporting stuff? At least some transparency would be fair... thank you.