microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.58k stars 1.53k forks source link

Font size application does not work. #5002

Closed pearl-chae closed 5 months ago

pearl-chae commented 8 months ago

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Chrome (latest), Others or unrelated

Which area does this issue affect?

Customization: Others

What is the public URL for the website?

No response

Please describe the bug

https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-webchat-customization?view=azure-bot-service-4.0&preserve-view=true

I read the document guide above and try to modify the font size on the speech bubble

  // After generated, you can modify the CSS rules.
  // Change font family and weight. 
  styleSet.textContent = {
     ...styleSet.textContent,
     fontFamily: "'Comic Sans MS', 'Arial', sans-serif",
     fontSize:10px
  };

If you add the code The font size is applied only to the user side, and the font size of the bot does not get smaller. How can I apply the font size?

Do you see any errors in console log?

no

How to reproduce the issue?

  1. Navigate to ...
  2. Click on ...
  3. Type "..." in the send box

What do you expect?

I want to modify the front size.

What actually happened?

I want to modify the front size.

Do you have any screenshots or recordings to repro the issue?

No response

Adaptive Card JSON

No response

Additional context

No response

stevkan commented 7 months ago

@pearl-chae - Are you still having an issue with this?

stevkan commented 5 months ago

Closing due to inactivity.