botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Question] PromptDialog.Choice text hidden

Open luisnatividade opened this issue 8 years ago • 5 comments

Bot Info

  • SDK Platform: .NET
  • Active Channels: Web Chat
  • Deployment Environment: Azure Bot Service

Issue Description

Text hidden in PromptDialog.Choice if is too big to fit in the dialog prompt. (see image above)

Code Example

PromptDialog.Choice(context, this.onAnswerOptionsSelected, new List() { "This is an example that you cannot read because is hidden.", "Example that fits." }, "Please choose an option.", "Not a valid option. Please choose an option.", 3, PromptStyle.Auto);

Expected Behavior

I dont't want the text to be replace with "..." . Is there any way to make a new line if the text does not fit?

I don't want to put a "\n" in the message, just want it to automatically make a new line if the text does not fit.

Actual Results

image

luisnatividade avatar Jan 11 '18 10:01 luisnatividade

This is a limitation of prompts, there is not a way to make a new line. You must design your choices to fit within the constraints.

JasonSowers avatar Jan 11 '18 17:01 JasonSowers

@JasonSowers is it possible to change the css files of the bot? Because deleting the "white-space: nowrap;" would solve the problem...

luisnatividade avatar Jan 12 '18 11:01 luisnatividade

WebChat is open source and fully customizable. A good place to start is over on the WebChat Repo. Going to close this issue, but feel free to continue the conversation here if needed.

JasonSowers avatar Jan 12 '18 22:01 JasonSowers

@JasonSowers I'm using an iframe to include the bot on a webpage. Is it possible to change the css of a promptDialog? Thanks in advance...

luisnatividade avatar Jan 25 '18 16:01 luisnatividade

Not in an IFrame.

JasonSowers avatar Jan 25 '18 17:01 JasonSowers