@arbidocs/blocks 0.3.155 → 0.3.157
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.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/grid.css +29 -20
package/dist/index.js
CHANGED
|
@@ -930,8 +930,9 @@ function GridView({
|
|
|
930
930
|
const padTotal = Math.max(0, Math.min(PREFERRED_PAD, rowHeight - BORDER - LINE_PX));
|
|
931
931
|
const lines2 = Math.max(1, Math.floor((rowHeight - BORDER - padTotal) / LINE_PX));
|
|
932
932
|
const vars = style;
|
|
933
|
-
vars["--
|
|
934
|
-
vars["--
|
|
933
|
+
vars["--multiline-line-clamp"] = `${lines2}`;
|
|
934
|
+
vars["--multiline-pad-y"] = `${padTotal / 2}px`;
|
|
935
|
+
vars["--multiline-max-h"] = `${lines2 * LINE_PX + padTotal / 2 + BORDER}px`;
|
|
935
936
|
}
|
|
936
937
|
return style;
|
|
937
938
|
}, [height, rowHeight]);
|