@optifye/dashboard-core 6.12.12 → 6.12.13

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/index.js CHANGED
@@ -37700,12 +37700,12 @@ var VideoCard = React144__namespace.default.memo(({
37700
37700
  }
37701
37701
  ) })
37702
37702
  ] }),
37703
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `absolute bottom-0 left-0 right-0 bg-black bg-opacity-60 p-1.5 sm:${compact ? "p-1" : "p-1.5"} flex justify-between items-center z-10`, children: [
37704
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
37705
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { size: compact ? 10 : 12, className: "text-white" }),
37706
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-white text-[11px] sm:${compact ? "text-[10px]" : "text-xs"} font-medium tracking-wide`, children: workspaceDisplayName })
37703
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `absolute bottom-0 left-0 right-0 bg-black bg-opacity-60 p-1.5 sm:${compact ? "p-1" : "p-1.5"} flex min-w-0 justify-between items-center gap-1 z-10`, children: [
37704
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-center gap-1.5", children: [
37705
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { size: compact ? 10 : 12, className: "shrink-0 text-white" }),
37706
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: `min-w-0 truncate text-white text-[11px] sm:${compact ? "text-[10px]" : "text-xs"} font-medium tracking-wide`, children: workspaceDisplayName })
37707
37707
  ] }),
37708
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex items-center ${compact ? "gap-1" : "gap-1.5"}`, children: [
37708
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex shrink-0 items-center ${compact ? "gap-1" : "gap-1.5"}`, children: [
37709
37709
  trendInfo && /* @__PURE__ */ jsxRuntime.jsx(
37710
37710
  "div",
37711
37711
  {
@@ -38169,20 +38169,20 @@ var VideoGridView = React144__namespace.default.memo(({
38169
38169
  ref: containerRef,
38170
38170
  "data-testid": "video-grid-scroll-container",
38171
38171
  "data-mobile-scrollable": isMobileScrollableGrid ? "true" : "false",
38172
- className: `absolute inset-0 w-full px-1 py-1 sm:px-2 sm:py-2 ${isMobileScrollableGrid ? "overflow-y-auto" : "overflow-hidden"}`,
38172
+ className: `absolute inset-0 w-full overflow-x-hidden px-1 py-1 sm:px-2 sm:py-2 ${isMobileScrollableGrid ? "overflow-y-auto" : "overflow-hidden"}`,
38173
38173
  children: /* @__PURE__ */ jsxRuntime.jsx(
38174
38174
  "div",
38175
38175
  {
38176
38176
  "data-testid": "video-grid-layout",
38177
- className: `grid w-full gap-1.5 sm:gap-2 ${isMobileScrollableGrid ? "content-start" : "h-full"}`,
38177
+ className: `grid min-w-0 w-full gap-1.5 sm:gap-2 ${isMobileScrollableGrid ? "content-start" : "h-full"}`,
38178
38178
  style: {
38179
- gridTemplateColumns: `repeat(${gridCols}, 1fr)`,
38179
+ gridTemplateColumns: `repeat(${gridCols}, minmax(0, 1fr))`,
38180
38180
  gridTemplateRows: isMobileScrollableGrid ? void 0 : `repeat(${gridRows}, 1fr)`,
38181
38181
  gridAutoFlow: "row"
38182
38182
  },
38183
38183
  children: workspaceCards.map((card) => renderWorkspaceCard(
38184
38184
  card,
38185
- isMobileScrollableGrid ? "workspace-card relative w-full aspect-video min-h-[92px]" : "workspace-card relative w-full h-full"
38185
+ isMobileScrollableGrid ? "workspace-card relative min-w-0 w-full aspect-video min-h-[92px]" : "workspace-card relative min-w-0 w-full h-full"
38186
38186
  ))
38187
38187
  }
38188
38188
  )
package/dist/index.mjs CHANGED
@@ -37671,12 +37671,12 @@ var VideoCard = React144__default.memo(({
37671
37671
  }
37672
37672
  ) })
37673
37673
  ] }),
37674
- /* @__PURE__ */ jsxs("div", { className: `absolute bottom-0 left-0 right-0 bg-black bg-opacity-60 p-1.5 sm:${compact ? "p-1" : "p-1.5"} flex justify-between items-center z-10`, children: [
37675
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
37676
- /* @__PURE__ */ jsx(Camera, { size: compact ? 10 : 12, className: "text-white" }),
37677
- /* @__PURE__ */ jsx("p", { className: `text-white text-[11px] sm:${compact ? "text-[10px]" : "text-xs"} font-medium tracking-wide`, children: workspaceDisplayName })
37674
+ /* @__PURE__ */ jsxs("div", { className: `absolute bottom-0 left-0 right-0 bg-black bg-opacity-60 p-1.5 sm:${compact ? "p-1" : "p-1.5"} flex min-w-0 justify-between items-center gap-1 z-10`, children: [
37675
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-1.5", children: [
37676
+ /* @__PURE__ */ jsx(Camera, { size: compact ? 10 : 12, className: "shrink-0 text-white" }),
37677
+ /* @__PURE__ */ jsx("p", { className: `min-w-0 truncate text-white text-[11px] sm:${compact ? "text-[10px]" : "text-xs"} font-medium tracking-wide`, children: workspaceDisplayName })
37678
37678
  ] }),
37679
- /* @__PURE__ */ jsxs("div", { className: `flex items-center ${compact ? "gap-1" : "gap-1.5"}`, children: [
37679
+ /* @__PURE__ */ jsxs("div", { className: `flex shrink-0 items-center ${compact ? "gap-1" : "gap-1.5"}`, children: [
37680
37680
  trendInfo && /* @__PURE__ */ jsx(
37681
37681
  "div",
37682
37682
  {
@@ -38140,20 +38140,20 @@ var VideoGridView = React144__default.memo(({
38140
38140
  ref: containerRef,
38141
38141
  "data-testid": "video-grid-scroll-container",
38142
38142
  "data-mobile-scrollable": isMobileScrollableGrid ? "true" : "false",
38143
- className: `absolute inset-0 w-full px-1 py-1 sm:px-2 sm:py-2 ${isMobileScrollableGrid ? "overflow-y-auto" : "overflow-hidden"}`,
38143
+ className: `absolute inset-0 w-full overflow-x-hidden px-1 py-1 sm:px-2 sm:py-2 ${isMobileScrollableGrid ? "overflow-y-auto" : "overflow-hidden"}`,
38144
38144
  children: /* @__PURE__ */ jsx(
38145
38145
  "div",
38146
38146
  {
38147
38147
  "data-testid": "video-grid-layout",
38148
- className: `grid w-full gap-1.5 sm:gap-2 ${isMobileScrollableGrid ? "content-start" : "h-full"}`,
38148
+ className: `grid min-w-0 w-full gap-1.5 sm:gap-2 ${isMobileScrollableGrid ? "content-start" : "h-full"}`,
38149
38149
  style: {
38150
- gridTemplateColumns: `repeat(${gridCols}, 1fr)`,
38150
+ gridTemplateColumns: `repeat(${gridCols}, minmax(0, 1fr))`,
38151
38151
  gridTemplateRows: isMobileScrollableGrid ? void 0 : `repeat(${gridRows}, 1fr)`,
38152
38152
  gridAutoFlow: "row"
38153
38153
  },
38154
38154
  children: workspaceCards.map((card) => renderWorkspaceCard(
38155
38155
  card,
38156
- isMobileScrollableGrid ? "workspace-card relative w-full aspect-video min-h-[92px]" : "workspace-card relative w-full h-full"
38156
+ isMobileScrollableGrid ? "workspace-card relative min-w-0 w-full aspect-video min-h-[92px]" : "workspace-card relative min-w-0 w-full h-full"
38157
38157
  ))
38158
38158
  }
38159
38159
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optifye/dashboard-core",
3
- "version": "6.12.12",
3
+ "version": "6.12.13",
4
4
  "description": "Reusable UI & logic for Optifye dashboard",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",