@fluentui/react-northstar
Version:
A themable React component library.
34 lines (32 loc) • 1.05 kB
JavaScript
exports.__esModule = true;
exports.chatItemStylesComfy = void 0;
var _utils = require("../../../../utils");
/** ChatItem styles specific for the default/comfy density. */
var chatItemStylesComfy = {
root: function root(_ref) {
var p = _ref.props;
return Object.assign({}, (!p.attached || p.attached === 'top') && {
paddingTop: (0, _utils.pxToRem)(16)
}, (p.attached === 'bottom' || p.attached === true) && {
paddingTop: (0, _utils.pxToRem)(2)
});
},
gutter: function gutter(_ref2) {
var _ref3;
var p = _ref2.props,
v = _ref2.variables;
return _ref3 = {
marginTop: p.layout === 'refresh' ? v.gutterMarginComfyRefresh : v.gutterMargin
}, _ref3[p.contentPosition === 'end' ? 'right' : 'left'] = 0, _ref3;
},
message: function message(_ref4) {
var v = _ref4.variables;
return {
marginLeft: v.messageMargin,
marginRight: v.messageMargin
};
}
};
exports.chatItemStylesComfy = chatItemStylesComfy;
//# sourceMappingURL=chatItemStylesComfy.js.map
;