refactor(button-group): use inline-flex in all cases

This commit is contained in:
07akioni 2020-06-26 20:04:57 +08:00
parent 2630c9772a
commit 2286b58ae3

View File

@ -28,11 +28,13 @@ function createTopBorderStyle (type) {
export default c([
() => cB('button-group', {
whiteSpace: 'nowrap',
display: 'inline-block',
flexWrap: 'nowrap',
display: 'inline-flex',
position: 'relative'
}, [
cNotM('vertical', [
cNotM('vertical', {
flexDirection: 'row'
}, [
cB('button', [
c('&:first-child:not(:last-child)', {
marginRight: zero,
@ -60,7 +62,6 @@ export default c([
])
]),
cM('vertical', {
display: 'inline-flex',
flexDirection: 'column'
}, [
cB('button', [