[Canary] Adaptive Cards max width smaller on new UI

I’m not sure if this was an overlooked bug or an intended feature, if it’s intended then that’s fine but I’d figure I would bring it up. On the new UI currently in Canary, Adaptive Cards’ widths are much smaller than they used to be.

Looking at the card, it should feel like the text shouldn’t try to wrap as soon, since there is still space on either side of the adaptive card. Here is an example:

Here I am using 512px as the minHeight on the adaptive card. Here is the full code to the test resource:

AddEventHandler('playerConnecting', function(name, setKickReason, deferrals)
	deferrals.defer()
	deferrals.presentCard({
		type = "AdaptiveCard",
		version = "1.0",
		minHeight = "512px",
		backgroundImage = {
			url = "https://images.unsplash.com/photo-1597182859144-a3aaa5a1bf28",
			fillMode = "cover"
		},
		body = {
			{
				type = "TextBlock",
				text = "This is for width; This is for width; This is for width",
				color = "dark"
			}
		}
	})
end)
1 Like

but you can’t use minHeight and background image fill mode with version 1.0, that’s only since 1.2. Not that it does matter tho, heh.

I should’ve clarified this happens on 1.0-1.2 haha. But apparently the version doesn’t really matter like you said, since it all worked fine for me. I have another resource that’s in 1.2 (where I originally noticed it), and just wrote up a quick proof-of-concept for this post.

should have been fixed plz

3 Likes