mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-27 20:36:27 -08:00
forgot to commit a file whoops
This commit is contained in:
2 files changed
+3
-129
No files matched your search
@@ -172,131 +172,7 @@ export const RoomViewFollowing = as<'div', RoomViewFollowingProps>(
|
||||
</Text>
|
||||
</>
|
||||
)}
|
||||
<Box
|
||||
as={names.length > 0 ? 'button' : 'div'}
|
||||
onClick={names.length > 0 ? () => setOpen(true) : undefined}
|
||||
className={classNames(css.RoomViewFollowing({ clickable: names.length > 0 }), className)}
|
||||
alignItems="Center"
|
||||
justifyContent="End"
|
||||
gap="200"
|
||||
{...props}
|
||||
ref={ref}
|
||||
>
|
||||
{names.length > 0 && (
|
||||
<>
|
||||
<Icon style={{ opacity: config.opacity.P300 }} size="100" src={Icons.CheckTwice} />
|
||||
<Text size="T300" truncate>
|
||||
{names.length === 1 && (
|
||||
<>
|
||||
<b style={{ WebkitTextFillColor: 'inherit' }}>{names[0]}</b>
|
||||
<Text
|
||||
as="span"
|
||||
size="Inherit"
|
||||
priority="300"
|
||||
style={{ WebkitTextFillColor: 'currentColor' }}
|
||||
>
|
||||
{' is following the conversation.'}
|
||||
</Text>
|
||||
</>
|
||||
)}
|
||||
{names.length === 2 && (
|
||||
<>
|
||||
<b style={{ WebkitTextFillColor: 'inherit' }}>{names[0]}</b>
|
||||
<Text
|
||||
as="span"
|
||||
size="Inherit"
|
||||
priority="300"
|
||||
style={{ WebkitTextFillColor: 'currentColor' }}
|
||||
>
|
||||
{' and '}
|
||||
</Text>
|
||||
<b style={{ WebkitTextFillColor: 'inherit' }}>{names[1]}</b>
|
||||
<Text
|
||||
as="span"
|
||||
size="Inherit"
|
||||
priority="300"
|
||||
style={{ WebkitTextFillColor: 'currentColor' }}
|
||||
>
|
||||
{' are following the conversation.'}
|
||||
</Text>
|
||||
</>
|
||||
)}
|
||||
{names.length === 3 && (
|
||||
<>
|
||||
<b style={{ WebkitTextFillColor: 'inherit' }}>{names[0]}</b>
|
||||
<Text
|
||||
as="span"
|
||||
size="Inherit"
|
||||
priority="300"
|
||||
style={{ WebkitTextFillColor: 'currentColor' }}
|
||||
>
|
||||
{', '}
|
||||
</Text>
|
||||
<b style={{ WebkitTextFillColor: 'inherit' }}>{names[1]}</b>
|
||||
<Text
|
||||
as="span"
|
||||
size="Inherit"
|
||||
priority="300"
|
||||
style={{ WebkitTextFillColor: 'currentColor' }}
|
||||
>
|
||||
{' and '}
|
||||
</Text>
|
||||
<b style={{ WebkitTextFillColor: 'inherit' }}>{names[2]}</b>
|
||||
<Text
|
||||
as="span"
|
||||
size="Inherit"
|
||||
priority="300"
|
||||
style={{ WebkitTextFillColor: 'currentColor' }}
|
||||
>
|
||||
{' are following the conversation.'}
|
||||
</Text>
|
||||
</>
|
||||
)}
|
||||
{names.length > 3 && (
|
||||
<>
|
||||
<b style={{ WebkitTextFillColor: 'inherit' }}>{names[0]}</b>
|
||||
<Text
|
||||
as="span"
|
||||
size="Inherit"
|
||||
priority="300"
|
||||
style={{ WebkitTextFillColor: 'currentColor' }}
|
||||
>
|
||||
{', '}
|
||||
</Text>
|
||||
<b style={{ WebkitTextFillColor: 'inherit' }}>{names[1]}</b>
|
||||
<Text
|
||||
as="span"
|
||||
size="Inherit"
|
||||
priority="300"
|
||||
style={{ WebkitTextFillColor: 'currentColor' }}
|
||||
>
|
||||
{', '}
|
||||
</Text>
|
||||
<b style={{ WebkitTextFillColor: 'inherit' }}>{names[2]}</b>
|
||||
<Text
|
||||
as="span"
|
||||
size="Inherit"
|
||||
priority="300"
|
||||
style={{ WebkitTextFillColor: 'currentColor' }}
|
||||
>
|
||||
{' and '}
|
||||
</Text>
|
||||
<b style={{ WebkitTextFillColor: 'inherit' }}>{names.length - 3} others</b>
|
||||
<Text
|
||||
as="span"
|
||||
size="Inherit"
|
||||
priority="300"
|
||||
style={{ WebkitTextFillColor: 'currentColor' }}
|
||||
>
|
||||
{' are following the conversation.'}
|
||||
</Text>
|
||||
</>
|
||||
)}
|
||||
</Text>
|
||||
</>
|
||||
)}
|
||||
</Box>
|
||||
</>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
);
|
||||
@@ -202,10 +202,8 @@ function processChildren(
|
||||
isText(next2) &&
|
||||
next2.data === '>'
|
||||
) {
|
||||
const href = (next as Element).attribs.href ?? '';
|
||||
const content = (next as Element).children
|
||||
.map((c) => processNode(c, listDepth, insideCode))
|
||||
.join('');
|
||||
const href = next.attribs.href ?? '';
|
||||
const content = next.children.map((c) => processNode(c, listDepth, insideCode)).join('');
|
||||
out.push(`[${content}](<${href}>)`);
|
||||
i += 2;
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user