@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.
@@ -102,29 +102,34 @@ function ModelSelector({ modelId, effortId, onModelChange, onEffortChange, disab
102
102
  })
103
103
  }), /* @__PURE__ */ jsxs(DropdownMenuContent, {
104
104
  align: "end",
105
- className: "w-44",
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(DropdownMenuRadioGroup, {
112
- value: modelId,
113
- onValueChange: onModelChange,
114
- children: models.map((m) => /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
115
- value: m.id,
116
- className: "text-sm",
117
- children: m.label
118
- }, m.id))
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",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@datum-cloud/datum-ui",
3
3
  "type": "module",
4
- "version": "1.6.0",
4
+ "version": "1.6.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "url": "https://github.com/datum-cloud/datum-ui"