JSON to client (#5553)
This commit is contained in:
@@ -5,6 +5,7 @@ import { s } from "@shared/styles";
|
||||
import User from "~/models/User";
|
||||
import Avatar from "~/components/Avatar";
|
||||
import Flex from "~/components/Flex";
|
||||
import { AvatarSize } from "./Avatar/Avatar";
|
||||
|
||||
type Props = {
|
||||
users: User[];
|
||||
@@ -17,7 +18,7 @@ type Props = {
|
||||
function Facepile({
|
||||
users,
|
||||
overflow = 0,
|
||||
size = 32,
|
||||
size = AvatarSize.Large,
|
||||
limit = 8,
|
||||
renderAvatar = DefaultAvatar,
|
||||
...rest
|
||||
@@ -43,7 +44,7 @@ function Facepile({
|
||||
}
|
||||
|
||||
function DefaultAvatar(user: User) {
|
||||
return <Avatar model={user} size={32} />;
|
||||
return <Avatar model={user} size={AvatarSize.Large} />;
|
||||
}
|
||||
|
||||
const AvatarWrapper = styled.div`
|
||||
@@ -62,11 +63,11 @@ const More = styled.div<{ size: number }>`
|
||||
min-width: ${(props) => props.size}px;
|
||||
height: ${(props) => props.size}px;
|
||||
border-radius: 100%;
|
||||
background: ${(props) => props.theme.slate};
|
||||
color: ${s("text")};
|
||||
background: ${(props) => props.theme.textTertiary};
|
||||
color: ${s("white")};
|
||||
border: 2px solid ${s("background")};
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user