@sanity/form-builder
Version:
Sanity form builder
12 lines (11 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AutocompleteHeightFix = void 0;
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _templateObject;
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 AutocompleteHeightFix = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // workaround for an issue that caused the autocomplete to not be the same height as the New button\n // after removing, make sure they align perfectly\n line-height: 0;\n\n // also adds a margin at top/bottom to keep a stable height when toggling between \"preview mode\" and \"input mode\"\n margin-top: 1px;\n margin-bottom: 1px;\n"])));
exports.AutocompleteHeightFix = AutocompleteHeightFix;