mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Embrace "Private mention"
This commit is contained in:
parent
6773207610
commit
6f8390c3f8
3 changed files with 29 additions and 4 deletions
|
@ -893,7 +893,7 @@ function Compose({
|
|||
</option>
|
||||
<option value="unlisted">Unlisted</option>
|
||||
<option value="private">Followers only</option>
|
||||
<option value="direct">Direct</option>
|
||||
<option value="direct">Private mention</option>
|
||||
</select>
|
||||
</label>{' '}
|
||||
</div>
|
||||
|
|
|
@ -240,16 +240,18 @@
|
|||
|
||||
.status-reply-badge {
|
||||
display: inline-flex;
|
||||
margin-left: 4px;
|
||||
margin: 2px 0 2px 4px;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.status-reply-badge .icon {
|
||||
color: var(--reply-to-color);
|
||||
}
|
||||
.status-thread-badge {
|
||||
vertical-align: middle;
|
||||
display: inline-flex;
|
||||
margin: 4px 0 0 0;
|
||||
margin: 2px 0;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
color: var(--reply-to-text-color);
|
||||
|
@ -270,6 +272,24 @@
|
|||
);
|
||||
font-weight: bold;
|
||||
}
|
||||
.status-direct-badge {
|
||||
vertical-align: middle;
|
||||
display: inline-flex;
|
||||
margin: 2px 0;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
color: var(--reply-to-text-color);
|
||||
background-color: var(--bg-color);
|
||||
border: 1px solid var(--reply-to-text-color);
|
||||
border-radius: 4px;
|
||||
padding: 4px;
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.75;
|
||||
font-weight: bold;
|
||||
box-shadow: inset 0 0 0 1px var(--reply-to-color);
|
||||
}
|
||||
.status-filtered-badge {
|
||||
flex-shrink: 0;
|
||||
color: var(--text-insignificant-color);
|
||||
|
|
|
@ -62,7 +62,7 @@ const visibilityText = {
|
|||
public: 'Public',
|
||||
unlisted: 'Unlisted',
|
||||
private: 'Followers only',
|
||||
direct: 'Direct',
|
||||
direct: 'Private mention',
|
||||
};
|
||||
|
||||
function Status({
|
||||
|
@ -779,6 +779,11 @@ function Status({
|
|||
</span>
|
||||
))}
|
||||
</div>
|
||||
{visibility === 'direct' && (
|
||||
<>
|
||||
<div class="status-direct-badge">Private mention</div>{' '}
|
||||
</>
|
||||
)}
|
||||
{!withinContext && (
|
||||
<>
|
||||
{inReplyToAccountId === status.account?.id ||
|
||||
|
|
Loading…
Add table
Reference in a new issue