+
diff --git a/packages/elements/src/message/MessageContent.vue b/packages/elements/src/message/MessageContent.vue
index 1e4d4d8..8f9f5ef 100644
--- a/packages/elements/src/message/MessageContent.vue
+++ b/packages/elements/src/message/MessageContent.vue
@@ -8,7 +8,7 @@ interface Props {
const props = defineProps
()
const classes = computed(() => [
- 'flex flex-col gap-2 overflow-hidden rounded-lg px-4 py-3 text-foreground text-sm',
+ 'max-w-[80%] flex flex-col gap-2 overflow-hidden rounded-lg px-4 py-3 text-foreground text-sm',
'group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground',
'group-[.is-assistant]:bg-secondary group-[.is-assistant]:text-foreground',
'is-user:dark',
diff --git a/packages/examples/src/actions-hover.vue b/packages/examples/src/actions-hover.vue
new file mode 100644
index 0000000..eed6452
--- /dev/null
+++ b/packages/examples/src/actions-hover.vue
@@ -0,0 +1,49 @@
+
+
+
+
+ {{ responseContent }}
+
+
+
+
+
+
+
diff --git a/packages/examples/src/actions.vue b/packages/examples/src/actions.vue
new file mode 100644
index 0000000..89a2e07
--- /dev/null
+++ b/packages/examples/src/actions.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+ {{ message.content }}
+
+
+
+
+
+
+
+
+
diff --git a/packages/examples/src/index.ts b/packages/examples/src/index.ts
index 520fe96..0d952fd 100644
--- a/packages/examples/src/index.ts
+++ b/packages/examples/src/index.ts
@@ -1,3 +1,5 @@
+export { default as ActionsHover } from './actions-hover.vue'
+export { default as Actions } from './actions.vue'
export { default as Conversation } from './conversation.vue'
export { default as MessageMarkdown } from './message-markdown.vue'
export { default as Message } from './message.vue'
diff --git a/packages/registry/README.md b/packages/registry/README.md
index 420be04..5e3c30c 100644
--- a/packages/registry/README.md
+++ b/packages/registry/README.md
@@ -84,7 +84,7 @@ AI Elements Vue includes the following components:
| `conversation` | ✅ 已完成 | Container for chat conversations |
| `response` | ✅ 已完成 | Formatted AI response display |
| `prompt-input` | ✅ 已完成 | Advanced input component with model selection |
-| `actions` | ❌ 未完成 | Interactive action buttons for AI responses |
+| `actions` | ✅ 已完成 | Interactive action buttons for AI responses |
| `branch` | ❌ 未完成 | Branch visualization for conversation flows |
| `code-block` | ❌ 未完成 | Syntax-highlighted code display with copy functionality |
| `image` | ❌ 未完成 | AI-generated image display component |
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 51c3147..7c55577 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -146,7 +146,7 @@ importers:
specifier: workspace:*
version: link:../shadcn-vue
ai:
- specifier: ^5.0.28
+ specifier: ^5.0.29
version: 5.0.39(zod@4.1.5)
lucide-vue-next:
specifier: ^0.542.0