Can I adjust the max width of bot chat card

Teams TA 166 Reputation points
2022-07-19T10:12:03.523+00:00

I note that the adaptive card width is fixed in my app and no matter how i modify the width of the content, like image width...
But I found Signeasy application welcome card is longer than other. As show in the image below, The upper one is wider than the lower one
Anyone can explain this, please help, thanks
222263-image.png

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
941 questions
Microsoft Teams | Development
0 comments No comments
{count} vote

Accepted answer
  1. Prasad-MSFT 8,981 Reputation points Microsoft External Staff Moderator
    2022-07-19T10:48:34.337+00:00

    You can use the msteams property to expand the width of an Adaptive Card. To make a full width Adaptive Card, the width object in msteams property in the card content must be set to 'Full'.

    Sample JSON:

    {  
        "type": "AdaptiveCard",  
        "body": [{  
            "type": "Container",  
            "items": [{  
                "type": "TextBlock",  
                "text": "Digest card",  
                "size": "Large",  
                "weight": "Bolder"  
            }]  
        }],  
      
        "msteams": {  
            "width": "Full"  
        },  
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",  
        "version": "1.2"  
    }  
    

    Ref: https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cconnector-html#sample-adaptive-card-with-full-width

    Thanks,

    Prasad Das


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.