mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 08:20:39 +01:00
fix(ButtonGroup): use -space-x-px on wrapper
This commit is contained in:
@@ -198,7 +198,7 @@ const button = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const buttonGroup = {
|
const buttonGroup = {
|
||||||
wrapper: 'inline-flex',
|
wrapper: 'inline-flex -space-x-px',
|
||||||
rounded: 'rounded-md',
|
rounded: 'rounded-md',
|
||||||
shadow: 'shadow-sm'
|
shadow: 'shadow-sm'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,10 +59,6 @@ export default defineComponent({
|
|||||||
vProps.ui.rounded = rounded.value.left
|
vProps.ui.rounded = rounded.value.left
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index > 0) {
|
|
||||||
vProps.class += ' -ml-px'
|
|
||||||
}
|
|
||||||
|
|
||||||
if (index === children.value.length - 1) {
|
if (index === children.value.length - 1) {
|
||||||
vProps.ui.rounded = rounded.value.right
|
vProps.ui.rounded = rounded.value.right
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user