node.js - Azure Bot Framework - 换行卡片操作和按钮文本

标签 node.js azure botframework adaptive-cards

我遇到的问题是英雄卡和自适应卡中的按钮和操作不会换行文本。我在互联网上搜索过,每个人都提到了可以调整以解决此问题的 webchat.js 和 botchat.js 文件。我似乎在我的代码中找不到这些。名字改了吗?我知道 botchat 已更改为 webchat。有人知道在 Basic Bot NodeJS 实现 SDK V4 中哪里可以解决这个问题吗?

最佳答案

假设您正在使用网络聊天,您可以使用纯 CSS。这对我有用:

  .ac-pushButton > div {
    white-space: normal !important;
  }

关于node.js - Azure Bot Framework - 换行卡片操作和按钮文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61548884/

相关文章:

.NET Azure 存储客户端 - StartCopyFromUri 403 具有 IP 限制 token

azure - ILogger 的 LogWarning、LogInformation 和 LogDebug 使用什么类型的 Azure 警报信号?

node.js - 如何将控制传递回 Botbuilder NodeJS 中上一个对话框的顶部?

Azure Bot Service Direct Line API v3.0 在开始对话时不断抛出 403 错误

c# - 在机器人的子对话框中提示用户输入字符串

node.js - 如何导入从 github 安装的具有作用域名称的 npm 模块?

javascript - Mongodb 与和尚 : error catching and handling if db is down

arrays - 在登录到控制台之前等待循环完成

javascript - 无法运行服务。 [使用 npm install -g serve 的基本 html 和 app.js]

c# - 使用 WinRT 中的 Azure 托管库