Skip to content

Commit a6d7d19

Browse files
committed
- **BsListTile**: fixed bug of <BsListTileSubtitle> text overlap with <BsListTileAction> when multiline is on and is in ripple animation state.
- Update CHANGELOG.md
1 parent cb95f05 commit a6d7d19

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
> All notable changes to this project will be documented in this file.
44
55

6+
## v2.0.13
7+
8+
Released: September XX, 2024
9+
10+
### Bug Fixes
11+
12+
- **BsListTile**: fixed bug of `<BsListTileSubtitle>` text overlap with `<BsListTileAction>`
13+
when `multiline` is on and is in ripple animation state.
14+
15+
616
## v2.0.12
717

818
Released: September 20, 2024

src/components/ListView/listTile.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
padding: var(--#{$prefix}tile-padding-y) var(--#{$prefix}tile-padding-x);
100100
position: relative;
101101

102-
> div[class^="#{$prefix}list-tile-"] {
102+
> div > div[class^="#{$prefix}list-tile-"] {
103103
&:nth-child(2),
104104
&:last-child:not(:first-child) {
105105
margin-left: var(--#{$prefix}tile-padding-x);

src/components/ListView/mixins/listTileApi.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import type { ComputedRef, Prop, Ref, ShallowRef, Slots, VNode } from 'vue';
22
import { h } from 'vue';
3-
import { cssPrefix, useHasRouter, useRenderRouter } from '../../../mixins/CommonApi';
3+
import {
4+
cssPrefix,
5+
useHasRouter,
6+
useRenderRouter,
7+
useRenderSlotDefault,
8+
} from '../../../mixins/CommonApi';
49
import type {
510
IListItem,
611
IListViewProvider,
@@ -86,7 +91,6 @@ function createListTileElement(
8691
BsRipple,
8792
{
8893
class: [
89-
'd-flex',
9094
provider?.itemRounded === true && !props.roundedOff ? 'rounded' : '',
9195
provider?.itemRoundedPill === true && !props.pillOff ? 'rounded-pill' : '',
9296
],
@@ -96,7 +100,7 @@ function createListTileElement(
96100
!(tagName === 'a' || props.navigable)) as Prop<boolean>,
97101
},
98102
{
99-
default: () => slots.default && slots.default(),
103+
default: () => useRenderSlotDefault('div', slots, 'd-flex'),
100104
}
101105
),
102106
]

0 commit comments

Comments
 (0)