mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
refactor(button-group): use inline-flex in all cases
This commit is contained in:
parent
2630c9772a
commit
2286b58ae3
@ -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', [
|
||||
|
Loading…
Reference in New Issue
Block a user