Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-chat message with long title/subtitle show wrap #5306

Closed
compulim opened this issue Sep 25, 2024 · 0 comments · Fixed by #5307
Closed

Pre-chat message with long title/subtitle show wrap #5306

compulim opened this issue Sep 25, 2024 · 0 comments · Fixed by #5307
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Required for internal Azure reporting. Do not delete.

Comments

@compulim
Copy link
Contributor

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Development build

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?

Others or unrelated

Which area does this issue affect?

Chat history

Which theme pack does this issue affect?

Fluent UI

What is the public URL for the website?

No response

Please describe the bug

When display a pre-chat message with very long title/subtitle, it does not wrap and become very wide.

Do you see any errors in console log?

No response

How to reproduce the issue?

Render with the payload in the additional context section.

What do you expect?

Title/subtitle should wrap despite there are no work breaking characters in it.

What actually happened?

Title/subtitle did not break into next line.

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

image

Adaptive Card JSON

No response

Additional context

{
  entities: [
    {
      '@context': 'https://schema.org',
      '@id': '',
      '@type': 'Message',
      keywords: ['PreChatMessage'],
      type: 'https://schema.org/Message',
      author: {
        '@context': 'https://schema.org',
        '@type': 'Person',
        type: 'https://schema.org/Person',
        description: 'SitDolorIdAnimNisiAuteEtCommodoConsecteturVoluptateExcepteurMinimSuntConsequatConsequatNostrudIrureEnimNostrudCulpaVeniam.MinimElitNonEstEuNisi.MollitQuisDoloreExercitationOfficiaMinim',
        name: 'LoremIpsumSintNostrudNostrudSitEnimEtAnimCulpaFugiatIrureDolorMollit',
        image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJIAAACQ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0ElTE0AVDR0dHS8QBb1542ZTyauEB98iF4wlw0iR/Ji9myCrRYIIJOOprvpqiCgJHOTzefqnUuHFss0rJ00hw0kOEyeZTfmSRMjo7Gp69aShg20aJX3lI6BMOePQ+jVjcK6HaUrRVHLSBWkikE6ecnZ9Lnn1pLafxEbAkS0TF4yfNI4MP0G3Lb7SWWk2mw1nJYpYVNVUX4MfuorRe/fuPb5y++rJU8g/JkvMUWn0ZpPhTOAJObiIZars+vz5cPr+/fvHjSBBKUaxLUel2r1R/Bqhn0RWqwlpMkhQE2TqrK1XJezaHyJrfCIJdvJVV/9BZDap1CToRU34B5FZn0OCX9LWqxJF8PhFwd83/rZ7ddgisylOTUJQ0qLhizSpAglBMZkSRGhAhEXSkpC0dpF0ESdpUuUkNGVuDDiz0WAihEUKUTHHciXefi7SJAokVE3fmSdtHrFMGWoSuuZvzJMuUulICFu7eKOE28/TKOQklGmzpYr0iTEkpAlRMElao1SIQps8K9sS8ByFXQRTVLbICYniU2UkDAna7E3iJqRelQBRWIpevNNwYcgJ6dSosgQSthJ3Dz2P9JiQ4Sw6c5MlkMhkVWnlJKwJMm3mTsPfRCZ9nCI6rCKOitamZm+C6fd5ZNXHZ2SpAfofybRZmXG7Nxn9V85otOo1qowEhVog/y+oEjIzcuJUKC4uJyM1kXr+e3jx1CqQVqeOIZEiRYoUKVKkSJEiRYoUtL4DkaWZtZT0Fr4AAAAASUVORK5CYII='
      }
    }
  ],
  type: 'message'
}
@compulim compulim added bug Indicates an unexpected problem or an unintended behavior. customer-reported Required for internal Azure reporting. Do not delete. Bot Services Required for internal Azure reporting. Do not delete. Do not change color. labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Required for internal Azure reporting. Do not delete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant