@streamoid/chat-components 0.2.13 → 0.2.15

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1242,18 +1242,18 @@ function DynamicForm(props) {
1242
1242
  }
1243
1243
  ) });
1244
1244
  }
1245
- return /* @__PURE__ */ jsxs2(Card, { className: "w-full lg:w-[75%] max-w-2xl max-h-[60vh] lg:max-h-[45vh] flex flex-col border border-border bg-card shadow-sm animate-in fade-in duration-300", children: [
1245
+ return /* @__PURE__ */ jsxs2(Card, { className: "w-full lg:w-[75%] max-w-2xl sm:max-h-[60vh] lg:max-h-[45vh] flex flex-col border border-border bg-card shadow-sm animate-in fade-in duration-300", children: [
1246
1246
  /* @__PURE__ */ jsxs2(CardHeader, { className: "pb-2 pt-4 px-3 sm:px-5 flex-shrink-0", children: [
1247
1247
  /* @__PURE__ */ jsx10(CardTitle, { className: "text-sm font-semibold tracking-tight", children: title }),
1248
1248
  description && /* @__PURE__ */ jsx10(CardDescription, { className: "text-xs text-muted-foreground leading-snug", children: description })
1249
1249
  ] }),
1250
- /* @__PURE__ */ jsxs2("form", { onSubmit: handleSubmit, className: "relative flex-1 min-h-0 flex flex-col", children: [
1251
- /* @__PURE__ */ jsx10("div", { className: `scroll-fade-top ${!canScrollUp ? "fade-hidden" : ""}` }),
1250
+ /* @__PURE__ */ jsxs2("form", { onSubmit: handleSubmit, className: "relative sm:flex-1 sm:min-h-0 flex flex-col", children: [
1251
+ /* @__PURE__ */ jsx10("div", { className: `scroll-fade-top hidden sm:block ${!canScrollUp ? "fade-hidden" : ""}` }),
1252
1252
  /* @__PURE__ */ jsx10(
1253
1253
  "div",
1254
1254
  {
1255
1255
  ref: scrollRef,
1256
- className: "px-3 sm:px-5 overflow-y-auto flex-1 min-h-0 dynamic-form-scroll",
1256
+ className: "px-3 sm:px-5 sm:overflow-y-auto sm:flex-1 sm:min-h-0 dynamic-form-scroll",
1257
1257
  children: /* @__PURE__ */ jsxs2("div", { className: "space-y-3 pb-2", children: [
1258
1258
  fields.map((field) => {
1259
1259
  const statusText = getFieldStatusText(field);
@@ -1279,7 +1279,7 @@ function DynamicForm(props) {
1279
1279
  ] })
1280
1280
  }
1281
1281
  ),
1282
- /* @__PURE__ */ jsx10("div", { className: `scroll-fade-bottom ${!canScrollDown ? "fade-hidden" : ""}` }),
1282
+ /* @__PURE__ */ jsx10("div", { className: `scroll-fade-bottom hidden sm:block ${!canScrollDown ? "fade-hidden" : ""}` }),
1283
1283
  !(fields.length === 1 && fields[0]?.type === "media_approval") && /* @__PURE__ */ jsxs2("div", { className: "flex justify-end gap-2 px-3 sm:px-5 py-2 flex-shrink-0", children: [
1284
1284
  cancelText && /* @__PURE__ */ jsx10(
1285
1285
  Button,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoid/chat-components",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "description": "Shared chat UI components for the Streamoid chat host — DynamicForm and other cross-service components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",