@datum-cloud/datum-ui 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assistant/index.mjs +17 -12
- package/package.json +1 -1
package/dist/assistant/index.mjs
CHANGED
|
@@ -102,29 +102,34 @@ function ModelSelector({ modelId, effortId, onModelChange, onEffortChange, disab
|
|
|
102
102
|
})
|
|
103
103
|
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
104
104
|
align: "end",
|
|
105
|
-
|
|
105
|
+
collisionPadding: 16,
|
|
106
|
+
className: "flex w-56 max-h-[min(24rem,var(--radix-dropdown-menu-content-available-height))] flex-col overflow-hidden",
|
|
106
107
|
children: [
|
|
107
108
|
/* @__PURE__ */ jsx(DropdownMenuLabel, {
|
|
108
|
-
className: "text-muted-foreground text-[10px] tracking-wide uppercase",
|
|
109
|
+
className: "text-muted-foreground shrink-0 text-[10px] tracking-wide uppercase",
|
|
109
110
|
children: "Model"
|
|
110
111
|
}),
|
|
111
|
-
/* @__PURE__ */ jsx(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
112
|
+
/* @__PURE__ */ jsx("div", {
|
|
113
|
+
className: "min-h-0 flex-1 overflow-y-auto",
|
|
114
|
+
children: /* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
|
|
115
|
+
value: modelId,
|
|
116
|
+
onValueChange: onModelChange,
|
|
117
|
+
children: models.map((m) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
118
|
+
value: m.id,
|
|
119
|
+
className: "text-sm",
|
|
120
|
+
children: m.label
|
|
121
|
+
}, m.id))
|
|
122
|
+
})
|
|
119
123
|
}),
|
|
120
|
-
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
124
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, { className: "shrink-0" }),
|
|
121
125
|
/* @__PURE__ */ jsx(DropdownMenuLabel, {
|
|
122
|
-
className: "text-muted-foreground text-[10px] tracking-wide uppercase",
|
|
126
|
+
className: "text-muted-foreground shrink-0 text-[10px] tracking-wide uppercase",
|
|
123
127
|
children: "Effort"
|
|
124
128
|
}),
|
|
125
129
|
/* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
|
|
126
130
|
value: effortId,
|
|
127
131
|
onValueChange: (v) => onEffortChange(v),
|
|
132
|
+
className: "shrink-0",
|
|
128
133
|
children: efforts.map((e) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
129
134
|
value: e.id,
|
|
130
135
|
className: "text-sm",
|