Linter fix

This commit is contained in:
ilya-bkv 2022-11-29 09:04:23 +03:00
parent 9de323b752
commit a6a0b804b7
2 changed files with 14 additions and 11 deletions

View File

@ -23,8 +23,8 @@
}
.counter {
width: 23px;
height: 23px;
width: 24px;
height: 24px;
position: absolute;
bottom: 0;
right: 0;

View File

@ -1,3 +1,4 @@
import { For } from 'solid-js'
import './DialogCard.module.scss'
import styles from './GroupDialogAvatar.module.scss'
import { clsx } from 'clsx'
@ -17,15 +18,17 @@ const GroupDialogAvatar = (props: Props) => {
}
return (
<div class={styles.GroupDialogAvatar}>
{slicedUsers().map((user) => (
<DialogAvatar
className={styles.grouped}
bordered={true}
size="small"
name={user.name}
url={user.userpic}
/>
))}
<For each={slicedUsers()}>
{(user) => (
<DialogAvatar
className={styles.grouped}
bordered={true}
size="small"
name={user.name}
url={user.userpic}
/>
)}
</For>
{props.users.length > 3 && (
<div class={clsx(styles.counter, { [styles.hundred]: props.users.length >= 100 })}>
{++props.users.length}