Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rendering] Teams 2.1/New Channels Experience "full width" cards not so full width. #8692

Closed
z3019494 opened this issue Sep 29, 2023 · 3 comments
Labels
Area-Renderers Bug MSTeams-Developer-Support [DoNotDelete] Label to notify questions which needs attention from MSTeams Developer Support team. Partner-MsftTeams Issues related to AC integration with Microsoft Teams partner

Comments

@z3019494
Copy link

Target Platforms

UWP, Other

SDK Version

Unsure

Application Name

Microsoft Teams 2.1/New Channels Experience

Problem Description

When using
"msteams": { "width": "full" }
in an adaptive card, the classic Teams client will render it properly as the full width of the conversation box:
image

However, in Teams 2.1 or cases where the New Channel Experience has become the default in Teams Classic, the adaptive card width is no more than around two thirds of the conversation box:
image

Screenshots

No response

Card JSON

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.4",
    "msteams": {
        "width": "Full"
    },
    "body": [
        {
            "type": "Container",
            "bleed": true,
            "style": "emphasis",
            "items": [
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "width": "auto",
                            "items": [
                                {
                                    "type": "Image",
                                    "altText": "Announcement",
                                    "url": "https://normanhurb-h.schools.nsw.gov.au/content/dam/doe/sws/schools/n/normanhurb-h/icons/Communication.png",
                                    "width": "75px",
                                    "selectAction": {
                                        "type": "Action.OpenUrl",
                                        "url": "https://schoolsnsw.sharepoint.com/sites/N1XHSGBP/SitePages/Modern-Home.aspx#%F0%9F%93%A2-announcements",
                                        "id": "11",
                                        "title": ""
                                    }
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "**Whole School Announcement Summaries** ",
                                    "weight": "Bolder",
                                    "size": "Large",
                                    "wrap": true,
                                    "color": "Attention"
                                }
                            ],
                            "verticalContentAlignment": "Center"
                        }
                    ]
                }
            ]
        },
        {
            "type": "TextBlock",
            "text": "This thread contains announcement summaries that are posted at \n- 8:00 am\n- 12:00 pm (midday)\n- 4:00 pm\n\neach day, where new announcement have been made.",
            "wrap": true,
            "separator": true,
            "size": "Small",
            "color": "Accent"
        },
        {
            "type": "ActionSet",
            "actions": [
                {
                    "type": "Action.OpenUrl",
                    "title": "All Whole School Announcements",
                    "url": "https://schoolsnsw.sharepoint.com/sites/N1XHSGBP/SitePages/Modern-Home.aspx#%F0%9F%93%A2-announcements",
                    "style": "positive",
                    "id": "2",
                    "iconUrl": "https://normanhurb-h.schools.nsw.gov.au/content/dam/doe/sws/schools/n/normanhurb-h/icons/sharepoint.png"
                },
                {
                    "type": "Action.OpenUrl",
                    "title": "Manage announcements",
                    "url": "https://schoolsnsw.sharepoint.com/sites/N1XHSGBP/Lists/Whole%20School%20Announcements/manage-announcement.aspx",
                    "style": "positive",
                    "id": "3",
                    "iconUrl": "https://normanhurb-h.schools.nsw.gov.au/content/dam/doe/sws/schools/n/normanhurb-h/icons/sharepoint.png"
                }
            ]
        }
    ]
}

Sample Code Language

No response

Sample Code

No response

@z3019494
Copy link
Author

z3019494 commented Oct 4, 2023

It looks lie this issue has now been fixed on Teams 2.1:

image
image

However, the Teams 1.0 New Channels Experience on the web seems to continue to suffer from the same problem.
image

@jwoo-msft
Copy link
Member

this is the Teams issue.

@jwoo-msft jwoo-msft added Partner-MsftTeams Issues related to AC integration with Microsoft Teams partner MSTeams-Developer-Support [DoNotDelete] Label to notify questions which needs attention from MSTeams Developer Support team. labels Oct 4, 2023
@sayali-MSFT
Copy link

Please track this issue from here-MicrosoftDocs/msteams-docs#9602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Renderers Bug MSTeams-Developer-Support [DoNotDelete] Label to notify questions which needs attention from MSTeams Developer Support team. Partner-MsftTeams Issues related to AC integration with Microsoft Teams partner
Projects
Status: Closed
Development

No branches or pull requests

3 participants