UNPKG

@netdata/netdata-ui

Version:

netdata UI kit

18 lines (17 loc) 672 B
"use strict"; exports.__esModule = true; exports["default"] = void 0; var _default = exports["default"] = function _default(_ref) { var overflow = _ref.overflow; if (!overflow) { return ""; } if (typeof overflow === "string") { return "overflow: " + overflow + ";"; } var _overflow$vertical = overflow.vertical, vertical = _overflow$vertical === void 0 ? "" : _overflow$vertical, _overflow$horizontal = overflow.horizontal, horizontal = _overflow$horizontal === void 0 ? "" : _overflow$horizontal; return "\n " + (vertical && "overflow-y: " + vertical + ";") + "\n " + (horizontal && "overflow-x: " + horizontal + ";") + "\n "; };