Skip to content

Commit

Permalink
chore: fix indent when prependIcon is on VListGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwu9145 committed Nov 8, 2024
1 parent a944d2e commit e90e191
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VList/VListGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export const VListGroup = genericComponent<VListGroupSlots>()({
class={[
'v-list-group',
{
'v-list-group--prepend': list?.hasPrepend.value,
'v-list-group--fluid': props.fluid,
'v-list-group--hasPrependIcon': props.prependIcon,
'v-list-group--subgroup': props.subgroup,
'v-list-group--open': isOpen.value,
},
Expand Down
4 changes: 2 additions & 2 deletions packages/vuetify/src/components/VList/VListItem.sass
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@
&--fluid
--list-indent-size: 0px

&--fluid.v-list-group--prepend
--parent-padding: var(--indent-padding)
&--hasPrependIcon
--parent-padding: calc(var(--indent-padding) + var(--prepend-width))

.v-list-group__items
--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))
Expand Down
1 change: 0 additions & 1 deletion packages/vuetify/src/components/VList/VListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ export const VListItem = genericComponent<VListItemSlots>()({
'v-list-item--disabled': props.disabled,
'v-list-item--link': isClickable.value,
'v-list-item--nav': props.nav,
'v-list-item--prepend': !hasPrepend && list?.hasPrepend.value,
'v-list-item--slim': props.slim,
[`${props.activeClass}`]: props.activeClass && isActive.value,
},
Expand Down

0 comments on commit e90e191

Please sign in to comment.