BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

WebChat thumbnail card title text size showing very big which is not looking good

Open amitgobare23 opened this issue 9 years ago • 6 comments

webchat

amitgobare23 avatar Jul 20 '17 13:07 amitgobare23

Can you share your JSON?

danmarshall avatar Jul 20 '17 17:07 danmarshall

I am just using thumbnail card's title, subtitle,button and it's respected values and displaying it....that's it....not using any JSON

amitgobare23 avatar Jul 20 '17 19:07 amitgobare23

Is there any markdown in your title field?

danmarshall avatar Jul 20 '17 23:07 danmarshall

my code for thumbnail is like this:

new ThumbnailCard
			{
			Title = "Apple iPhone 7 Plus",
			Subtitle = "(Black, 128GB)",
			Text = "Rs. 70000.00",
			Images = new List<CardImage> { new CardImage("http://ecx.images-amazon.com/images/I/51qlxcCXNxL.jpg") },
			Buttons = new List<CardAction> { new CardAction(ActionTypes.OpenUrl, "Buy Now", value: "http://www.amazon.in/Apple-iPhone-Plus-Black-128GB/dp/B01LWNBCGM?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=aab1db40-cf0e-445b-8f7e-e70b687f6bad")},
		
			}.ToAttachment(),

And and displaying as below:

if (message.Attachments.Count() > 1)
				{
					message.AttachmentLayout = AttachmentLayoutTypes.Carousel;
				}
				await context.PostAsync(message);

what is solution for this problem?

amitgobare23 avatar Jul 21 '17 07:07 amitgobare23

Are you using the Iframe version of WebChat, or are you using it in a div on your own page? When using it in a div, there might be cascading CSS styles.

danmarshall avatar Jul 21 '17 17:07 danmarshall

Closed due to inactivity.

compulim avatar Jun 15 '18 08:06 compulim