Compact status need private-mention style if it is

This commit is contained in:
Lim Chee Aun 2023-10-21 23:05:32 +08:00
parent 0d4303861a
commit ddc8c1e9d9

View file

@ -606,11 +606,16 @@ function StatusCarousel({ title, class: className, children }) {
function TimelineStatusCompact({ status, instance }) {
const snapStates = useSnapshot(states);
const { id } = status;
const { id, visibility } = status;
const statusPeekText = statusPeek(status);
const sKey = statusKey(id, instance);
return (
<article class="status compact-thread" tabindex="-1">
<article
class={`status compact-thread ${
visibility === 'direct' ? 'visibility-direct' : ''
}`}
tabindex="-1"
>
{!!snapStates.statusThreadNumber[sKey] ? (
<div class="status-thread-badge">
<Icon icon="thread" size="s" />