mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-04 22:40:29 +03:00
revert: show invite reason as compact message
This commit is contained in:
parent
bad7c8a1ba
commit
08301cee7d
1 changed files with 23 additions and 33 deletions
|
|
@ -309,6 +309,7 @@ function InviteCard({
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
<Box direction="Column">
|
||||||
<Box gap="200" alignItems="Baseline">
|
<Box gap="200" alignItems="Baseline">
|
||||||
<Box grow="Yes">
|
<Box grow="Yes">
|
||||||
<Text size="T200" priority="300">
|
<Text size="T200" priority="300">
|
||||||
|
|
@ -328,22 +329,11 @@ function InviteCard({
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
{invite.reason && (
|
{invite.reason && (
|
||||||
<CutoutCard
|
<Text size="T200" priority="300">
|
||||||
variant="Surface"
|
Reason: {invite.reason}
|
||||||
style={{ padding: `${config.space.S100} ${config.space.S200}` }}
|
|
||||||
>
|
|
||||||
<Box direction="Row" gap="100" alignItems="Baseline" wrap="Wrap">
|
|
||||||
<Username style={{ color: colorMXID(invite.senderId) }}>
|
|
||||||
<Text as="span" size="T300" truncate>
|
|
||||||
<UsernameBold>{invite.senderName}</UsernameBold>
|
|
||||||
</Text>
|
</Text>
|
||||||
</Username>
|
|
||||||
<Text size="T300" priority="400">
|
|
||||||
{invite.reason}
|
|
||||||
</Text>
|
|
||||||
</Box>
|
|
||||||
</CutoutCard>
|
|
||||||
)}
|
)}
|
||||||
|
</Box>
|
||||||
</SequenceCard>
|
</SequenceCard>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue