@ant-design/x
Version:
Craft AI-driven interfaces effortlessly
28 lines • 658 B
JavaScript
const genBubbleListStyle = token => {
const {
componentCls,
padding
} = token;
return {
[`${componentCls}-list`]: {
display: 'flex',
flexDirection: 'column',
gap: padding,
overflowY: 'auto',
'&::-webkit-scrollbar': {
width: 8,
backgroundColor: 'transparent'
},
'&::-webkit-scrollbar-thumb': {
backgroundColor: token.colorTextTertiary,
borderRadius: token.borderRadiusSM
},
// For Firefox
'&': {
scrollbarWidth: 'thin',
scrollbarColor: `${token.colorTextTertiary} transparent`
}
}
};
};
export default genBubbleListStyle;