UNPKG

@aappddeevv/dynamics-client-ui

Version:

## What is it? A library to help you create great dynamics applications.

17 lines 709 B
"use strict"; /** Bound text, show ellipsis. */ Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const cstyles = require("../Dynamics/common.css"); /** * The width 100% seems to fix some cut-offs when the text * in the inner div seems to prematurely get ellipsis. This * means the parent div needs to have a width constrained * somehow. */ exports.Ellipsis = ({ children }) => { return (React.createElement("div", { className: cstyles.textOverflowContainer }, React.createElement("div", { className: cstyles.textOverflowEllipsis, style: { width: "100%" } }, children))); }; exports.default = exports.Ellipsis; //# sourceMappingURL=Ellipsis.js.map