mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 02:35:39 +03:00
Differentiate between previewMode vs quoted
When previewMode, auto-reveal spoiler
This commit is contained in:
parent
5bbb268731
commit
a196540d66
1 changed files with 3 additions and 4 deletions
|
@ -211,7 +211,7 @@ function Status({
|
|||
inReplyToAccountId === currentAccount ||
|
||||
mentions?.find((mention) => mention.id === currentAccount);
|
||||
|
||||
const showSpoiler = !!snapStates.spoilers[id] || false;
|
||||
const showSpoiler = previewMode || !!snapStates.spoilers[id] || false;
|
||||
|
||||
if (reblog) {
|
||||
// If has statusID, means useItemID (cached in states)
|
||||
|
@ -679,7 +679,7 @@ function Status({
|
|||
},
|
||||
);
|
||||
|
||||
const showContextMenu = size !== 'l' && !previewMode && !_deleted;
|
||||
const showContextMenu = size !== 'l' && !previewMode && !_deleted && !quoted;
|
||||
|
||||
return (
|
||||
<article
|
||||
|
@ -788,7 +788,7 @@ function Status({
|
|||
{size !== 'l' &&
|
||||
(_deleted ? (
|
||||
<span class="status-deleted-tag">Deleted</span>
|
||||
) : url && !previewMode ? (
|
||||
) : url && !previewMode && !quoted ? (
|
||||
<Menu
|
||||
instanceRef={menuInstanceRef}
|
||||
portal={{
|
||||
|
@ -1955,7 +1955,6 @@ const QuoteStatuses = memo(({ id, instance, level = 0 }) => {
|
|||
instance={q.instance}
|
||||
size="s"
|
||||
quoted={level + 1}
|
||||
previewMode
|
||||
/>
|
||||
</Link>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue