@homebound/beam 2.98.0 → 2.98.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.
@@ -307,7 +307,7 @@ const VirtualRoot = (0, memoize_one_1.default)((gs, columns, id, firstLastColumn
307
307
  // This re-renders each time we have new children in the view port
308
308
  return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref, style: style, css: {
309
309
  // Add an extra `> div` due to Item + itemContent both having divs
310
- ...Css_1.Css.addIn("& > div + div > div", gs.betweenRowsCss || {}).$,
310
+ ...Css_1.Css.addIn("& > div + div > div > *", gs.betweenRowsCss || {}).$,
311
311
  ...gs.rootCss,
312
312
  ...xss,
313
313
  }, "data-testid": id }, { children: children }), void 0));
@@ -425,7 +425,8 @@ function GridRow(props) {
425
425
  // root-element > row-element > cell-elements, so that we can have a hook for
426
426
  // hovers and styling. In theory this would change with subgrids.
427
427
  // Only enable when using div as elements
428
- ...(as === "table" ? {} : as === "virtual" ? Css_1.Css.df.$ : Css_1.Css.display("contents").$),
428
+ // For virtual tables use `display: flex` to keep all cells on the same row, but use `flexNone` to ensure the cells stay their defined widths
429
+ ...(as === "table" ? {} : as === "virtual" ? Css_1.Css.df.addIn("&>*", Css_1.Css.flexNone.$).$ : Css_1.Css.display("contents").$),
429
430
  ...(((rowStyle === null || rowStyle === void 0 ? void 0 : rowStyle.rowLink) || (rowStyle === null || rowStyle === void 0 ? void 0 : rowStyle.onClick)) &&
430
431
  style.rowHoverColor && {
431
432
  // Even though backgroundColor is set on the cellCss (due to display: content), the hover target is the row.
@@ -12,7 +12,7 @@ exports.defaultStyle = {
12
12
  lastCellCss: Css_1.Css.$,
13
13
  indentOneCss: Css_1.Css.pl4.$,
14
14
  indentTwoCss: Css_1.Css.pl7.$,
15
- headerCellCss: Css_1.Css.asfe.nowrap.py1.bgGray100.aife.$,
15
+ headerCellCss: Css_1.Css.nowrap.py1.bgGray100.aife.$,
16
16
  firstRowMessageCss: Css_1.Css.px1.py2.$,
17
17
  rowHoverColor: Css_1.Palette.Gray200,
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.98.0",
3
+ "version": "2.98.1",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",