@sanity/form-builder
Version:
Sanity form builder
15 lines (14 loc) • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TooltipContent = exports.StyledPreviewFlex = void 0;
var _ui = require("@sanity/ui");
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _templateObject, _templateObject2;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
var StyledPreviewFlex = (0, _styledComponents.default)(_ui.Flex)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* this is a hack to avoid layout jumps while previews are loading\n or the message is not tall enough to fill the card\n there's probably better ways of solving this */\n min-height: 36px;\n"])));
exports.StyledPreviewFlex = StyledPreviewFlex;
var TooltipContent = (0, _styledComponents.default)(_ui.Flex)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /* This limits the width of the tooltip content */\n max-width: 250px;\n"])));
exports.TooltipContent = TooltipContent;