Skip to content

Commit d2f4541

Browse files
authored
fix(module:space): border radius compact mode one item (#9165)
1 parent ea57066 commit d2f4541

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎components/space/space-compact-item.directive.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export class NzSpaceCompactItemDirective implements OnDestroy {
4848
// so we need to use findIndex to find the index value of the first valid element.
4949
if (index === firstIndex) {
5050
classes.push(compactFirstItemClassOf(this.type, direction));
51-
} else if (index === items.length - 1) {
51+
}
52+
if (index === items.length - 1) {
5253
classes.push(compactLastItemClassOf(this.type, direction));
5354
}
5455

0 commit comments

Comments
 (0)