EvotecIT / PSTeams

PSTeams is a PowerShell Module working on Windows / Linux and Mac. It allows sending notifications to Microsoft Teams via WebHook Notifications. It's pretty flexible and provides a bunch of options. Initially, it only supported one sort of Team Cards but since version 2.X.X it supports Adaptive Cards, Hero Cards, List Cards, and Thumbnail Cards. All those new cards have their own cmdlets and the old version of creating Teams Cards stays as-is for compatibility reasons.
MIT License
409 stars 41 forks source link

support of Full width Adaptive card #35

Closed tomabg closed 3 years ago

tomabg commented 3 years ago

Hi,

according to the documentation in https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cconnector-html

There is a possibility to enlarge adaptive cards by using: "msteams": { "width": "Full" }

Is there a possibility to use that with this nice module?

BR Thomas

PrzemyslawKlys commented 3 years ago

Great find! Thank you. Added it and made default. I was not able to find this setting before and it was driving me crazy.

PrzemyslawKlys commented 3 years ago

Although I am now thinking if it should be default

image

Maybe on demand, and default as current size?

tomabg commented 3 years ago

yeah on demand is better option because this change would maybe destroy existing running installations/card design by update

Thank you for prompt response

PrzemyslawKlys commented 3 years ago

Added -FullWidth switch. Thank you again for this doc.

tomabg commented 3 years ago

looks very nice...seems example in doc needs an update too to use -FullWidth instead of -with full

if you interested i can send you my cards via mail or other channels

tomabg commented 3 years ago

Many Thanks for this enhancement

PrzemyslawKlys commented 3 years ago

Should be ok now :) Sure - I like to see what people do with my modules.