support UserPreview on bigmode

This commit is contained in:
SrGooglo 2023-06-19 19:22:29 +00:00
parent b0bd41e796
commit ceb447307d
2 changed files with 24 additions and 1 deletions

View File

@ -58,7 +58,8 @@ export default (props) => {
"userPreview", "userPreview",
{ {
["clickable"]: typeof props.onClick === "function", ["clickable"]: typeof props.onClick === "function",
["small"]: props.small ["small"]: props.small && !props.big,
["big"]: props.big && !props.small,
} }
)} )}
> >

View File

@ -26,6 +26,28 @@
} }
} }
&.big {
flex-direction: column;
font-size: 1.6em;
width: 80vw;
padding: 20px;
background-color: var(--background-color-accent);
border-radius: 12px;
.avatar {
width: 50vw;
height: 50vw;
}
.info {
padding: 20px;
width: 100%;
}
}
.avatar { .avatar {
display: flex; display: flex;