NGRP / node-red-contrib-viseo

Node-RED nodes OpenSourced by VISEO Technologies
Apache License 2.0
226 stars 83 forks source link

Feature/add attach size adaptive card #156

Closed siyaod closed 4 years ago

siyaod commented 4 years ago

@TothiViseo , Hello,

Here is an PR to customize the size of Adaptive-Card Image.

Current behavior: Element 'Image' has hard-coded size 'auto', hence, image scales to fit 100% of its container size. image

Objective: In order to customize the size of element 'Image', new properties(horizontalAlignment, Size, Width, Height, pixelWidth, pixelHeight) are added to Image configuration of the Adaptive-Card.

image

image

Modification: Rather than hard-coded size as 'auto', modifications have made to extract 'Image' properties horizontalAlignment, Size, Width, pixelWidth, pixelHeight and Height, put them into configuration of Adaptive-Card.

Reference: 1.adaptivecard explorer

  1. Git MS card-element

Thanks in advance!