Skip to content

Commit 5d472ef

Browse files
vogtnnmetulev
authored andcommitted
[mgt-people] setting overflow to align with peoplelist verticaly (#208)
1 parent 6edfbb1 commit 5d472ef

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/components/mgt-people/mgt-people.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,21 @@ mgt-people .people-list {
1616
list-style-type: none;
1717
margin: $list-margin;
1818
padding: 0;
19-
font-family: var(--default-font-family, "Segoe UI");
19+
font-family: var(--default-font-family, 'Segoe UI');
2020
font-style: normal;
2121
font-weight: normal;
2222
display: flex;
23+
align-items: center;
2324
}
2425

2526
:host .people-person,
2627
mgt-people .people-person {
2728
margin: $avatar-margin;
2829
display: flex;
2930
}
31+
:host .overflow,
32+
mgt-people .overflow {
33+
span {
34+
vertical-align: middle;
35+
}
36+
}

src/components/mgt-people/mgt-people.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class MgtPeople extends MgtTemplatedComponent {
140140
people: this.people
141141
}) ||
142142
html`
143-
<li>+${this.people.length - this.showMax}</li>
143+
<li class="overflow"><span>+${this.people.length - this.showMax}<span></li>
144144
`
145145
: null}
146146
</ul>

0 commit comments

Comments
 (0)