diff --git a/packages/ui/src/components/quick-reply/quick-reply.scss b/packages/ui/src/components/quick-reply/quick-reply.scss
index 2f90389..9b2acde 100644
--- a/packages/ui/src/components/quick-reply/quick-reply.scss
+++ b/packages/ui/src/components/quick-reply/quick-reply.scss
@@ -19,6 +19,15 @@
flex-wrap: wrap;
padding: 0 40px;
+ rasa-text::part(text) {
+ width: calc(100%);
+ max-width: 250px;
+ text-overflow: ellipsis;
+ display: inline-block;
+ white-space: nowrap;
+ overflow: hidden;
+ }
+
&--disabled {
pointer-events: none;
opacity: 0.5;
diff --git a/packages/ui/src/components/quick-reply/quick-reply.tsx b/packages/ui/src/components/quick-reply/quick-reply.tsx
index 5feb02c..8a34a5e 100644
--- a/packages/ui/src/components/quick-reply/quick-reply.tsx
+++ b/packages/ui/src/components/quick-reply/quick-reply.tsx
@@ -94,7 +94,7 @@ export class RasaQuickReply {
{canShowText && this.quickReplyMessage.replies.length && (
{this.quickReplyMessage.replies.map((button, key) => (
-
+
))}
diff --git a/packages/ui/src/components/text-message/text-message.test.tsx b/packages/ui/src/components/text-message/text-message.test.tsx
index 2e1ca95..4c5f13c 100644
--- a/packages/ui/src/components/text-message/text-message.test.tsx
+++ b/packages/ui/src/components/text-message/text-message.test.tsx
@@ -14,7 +14,7 @@ describe('rasa-text-message', () => {
-
+
Hello, World!
@@ -56,7 +56,7 @@ describe('rasa-text-message', () => {
-
+
User message
diff --git a/packages/ui/src/components/text/readme.md b/packages/ui/src/components/text/readme.md
index 893f43f..b7dd6a5 100644
--- a/packages/ui/src/components/text/readme.md
+++ b/packages/ui/src/components/text/readme.md
@@ -23,6 +23,13 @@
| `textStreamComplete` | Trigger on stream complete | `CustomEvent<{ value: true; }>` |
+## Shadow Parts
+
+| Part | Description |
+| -------- | ----------- |
+| `"text"` | |
+
+
## Dependencies
### Used by
diff --git a/packages/ui/src/components/text/text.tsx b/packages/ui/src/components/text/text.tsx
index 6380f03..f54a161 100644
--- a/packages/ui/src/components/text/text.tsx
+++ b/packages/ui/src/components/text/text.tsx
@@ -142,7 +142,7 @@ export class RasaText {
if (this.disableParsing) {
return (
- {this.value}
+ {this.value}
);
}