Skip to content

Commit

Permalink
fix(ButtonGroup): use -space-x-px on wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jun 6, 2023
1 parent a617672 commit d91c0bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/runtime/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const button = {
}

const buttonGroup = {
wrapper: 'inline-flex',
wrapper: 'inline-flex -space-x-px',
rounded: 'rounded-md',
shadow: 'shadow-sm'
}
Expand Down
4 changes: 0 additions & 4 deletions src/runtime/components/elements/ButtonGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ export default defineComponent({
vProps.ui.rounded = rounded.value.left
}

if (index > 0) {
vProps.class += ' -ml-px'
}

if (index === children.value.length - 1) {
vProps.ui.rounded = rounded.value.right
}
Expand Down

1 comment on commit d91c0bb

@vercel
Copy link

@vercel vercel bot commented on d91c0bb Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-nuxtlabs.vercel.app
ui-git-dev-nuxtlabs.vercel.app
ui.nuxtlabs.com

Please sign in to comment.