mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
Compact status need private-mention style if it is
This commit is contained in:
parent
0d4303861a
commit
ddc8c1e9d9
1 changed files with 7 additions and 2 deletions
|
@ -606,11 +606,16 @@ function StatusCarousel({ title, class: className, children }) {
|
||||||
|
|
||||||
function TimelineStatusCompact({ status, instance }) {
|
function TimelineStatusCompact({ status, instance }) {
|
||||||
const snapStates = useSnapshot(states);
|
const snapStates = useSnapshot(states);
|
||||||
const { id } = status;
|
const { id, visibility } = status;
|
||||||
const statusPeekText = statusPeek(status);
|
const statusPeekText = statusPeek(status);
|
||||||
const sKey = statusKey(id, instance);
|
const sKey = statusKey(id, instance);
|
||||||
return (
|
return (
|
||||||
<article class="status compact-thread" tabindex="-1">
|
<article
|
||||||
|
class={`status compact-thread ${
|
||||||
|
visibility === 'direct' ? 'visibility-direct' : ''
|
||||||
|
}`}
|
||||||
|
tabindex="-1"
|
||||||
|
>
|
||||||
{!!snapStates.statusThreadNumber[sKey] ? (
|
{!!snapStates.statusThreadNumber[sKey] ? (
|
||||||
<div class="status-thread-badge">
|
<div class="status-thread-badge">
|
||||||
<Icon icon="thread" size="s" />
|
<Icon icon="thread" size="s" />
|
||||||
|
|
Loading…
Reference in a new issue