@ordinatio/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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -805,6 +805,7 @@ var defaults2 = {
805
805
  actions: { display: "flex", flexWrap: "wrap", alignItems: "center", gap: "8px" }
806
806
  };
807
807
  var aboveOverlay = { position: "relative", zIndex: 1 };
808
+ var aboveOverlayShrunk = { ...aboveOverlay, width: "fit-content", maxWidth: "100%" };
808
809
  var visuallyHidden = { position: "absolute", width: "1px", height: "1px", overflow: "hidden", clip: "rect(0 0 0 0)", whiteSpace: "nowrap" };
809
810
  function ActivityFeedRow({
810
811
  sentence,
@@ -858,7 +859,7 @@ function ActivityFeedRow({
858
859
  ] }),
859
860
  /* @__PURE__ */ jsx6("time", { dateTime: valid ? date.toISOString() : void 0, ...part("time"), children: shownTime })
860
861
  ] }),
861
- shownChips.length > 0 || shownTags.length > 0 || hiddenTags > 0 ? /* @__PURE__ */ jsxs5("div", { ...part("chips", aboveOverlay), children: [
862
+ shownChips.length > 0 || shownTags.length > 0 || hiddenTags > 0 ? /* @__PURE__ */ jsxs5("div", { ...part("chips", aboveOverlayShrunk), children: [
862
863
  shownChips.map((chip, index) => chipNode(chip, `chip-${index}`, "chip")),
863
864
  shownTags.length > 0 ? /* @__PURE__ */ jsx6("span", { ...part("tagsLabel"), children: tagsLabel }) : null,
864
865
  shownTags.map((tag, index) => chipNode(tag, `tag-${index}`, "tag")),
@@ -871,7 +872,7 @@ function ActivityFeedRow({
871
872
  ] })
872
873
  ] }) : null
873
874
  ] }) : null,
874
- actions ? /* @__PURE__ */ jsx6("div", { ...part("actions", aboveOverlay), children: actions }) : null,
875
+ actions ? /* @__PURE__ */ jsx6("div", { ...part("actions", aboveOverlayShrunk), children: actions }) : null,
875
876
  clickable ? /* @__PURE__ */ jsx6(Link, { href, "aria-hidden": "true", tabIndex: -1, ...part("overlay", { position: "absolute", top: 0, right: 0, bottom: 0, left: 0 }) }) : null
876
877
  ] });
877
878
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ordinatio/ui",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Reusable React components and hooks for Ordinatio applications",