Linter fix
This commit is contained in:
parent
9de323b752
commit
a6a0b804b7
|
@ -23,8 +23,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.counter {
|
.counter {
|
||||||
width: 23px;
|
width: 24px;
|
||||||
height: 23px;
|
height: 24px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { For } from 'solid-js'
|
||||||
import './DialogCard.module.scss'
|
import './DialogCard.module.scss'
|
||||||
import styles from './GroupDialogAvatar.module.scss'
|
import styles from './GroupDialogAvatar.module.scss'
|
||||||
import { clsx } from 'clsx'
|
import { clsx } from 'clsx'
|
||||||
|
@ -17,15 +18,17 @@ const GroupDialogAvatar = (props: Props) => {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div class={styles.GroupDialogAvatar}>
|
<div class={styles.GroupDialogAvatar}>
|
||||||
{slicedUsers().map((user) => (
|
<For each={slicedUsers()}>
|
||||||
<DialogAvatar
|
{(user) => (
|
||||||
className={styles.grouped}
|
<DialogAvatar
|
||||||
bordered={true}
|
className={styles.grouped}
|
||||||
size="small"
|
bordered={true}
|
||||||
name={user.name}
|
size="small"
|
||||||
url={user.userpic}
|
name={user.name}
|
||||||
/>
|
url={user.userpic}
|
||||||
))}
|
/>
|
||||||
|
)}
|
||||||
|
</For>
|
||||||
{props.users.length > 3 && (
|
{props.users.length > 3 && (
|
||||||
<div class={clsx(styles.counter, { [styles.hundred]: props.users.length >= 100 })}>
|
<div class={clsx(styles.counter, { [styles.hundred]: props.users.length >= 100 })}>
|
||||||
{++props.users.length}
|
{++props.users.length}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user