Skip to main content

Notifications

Topic Creation & Management
Answered

Adaptive card won't scale its width

Posted on by 122

Hi!

I am using the following adaptive card:

 

{
 "type": "AdaptiveCard",
 "body": [
 {
 "type": "Image",
 "width": "1300px",
 "height": "970px",
 
 "url": "https://i.ibb.co/sv4FQMq/Microsoft-Teams-image.png"
 }
 ],
 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
 "version": "1.0"
}

 

The issue is that, even thought it does scale in height, it doesn't get and bigger width as shown:

JuanArango_0-1704211596499.png

PD: added msTeams full width and I't wont be scaled to the entire width of the screen, It will be wider but not the entire width

 

  • Verified answer
    remidyon Profile Picture
    remidyon on at
    Re: Adaptive card won't scale its width

    Hi @JuanArango 

    There is a max width even in Teams (not sure what the actual limit is). I would recommend you use the property "allowExpand" so that users can click on the image and open it in full screen from Teams.

     

    https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cdesktop%2Cconnector-html#stage-view-for-images-in-adaptive-cards

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,006

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics