fix(auth): unify imported sessions with account gating
This commit is contained in:
1 parent
654bbda457
commit
ea92a1a92b
15 files changed
+123
-49
No files matched your search
@@ -16,11 +16,15 @@ export function MediaCard({ item, isRevealed, onToggleReveal, onOpenPreview }: M
|
||||
return (
|
||||
<article className="media-card">
|
||||
<div className="media-preview">
|
||||
{isRevealed ? (
|
||||
<button aria-label={`View media from ${item.sender} larger`} className="media-preview-button" onClick={onOpenPreview} type="button">
|
||||
<img alt={`Media from ${item.sender}`} className="media-image" loading="lazy" src={item.urlPath} />
|
||||
</button>
|
||||
) : <img alt={`Media from ${item.sender}`} className="media-image is-blurred" loading="lazy" src={item.urlPath} />}
|
||||
<button
|
||||
aria-label={`View media from ${item.sender} larger`}
|
||||
className="media-preview-button"
|
||||
disabled={!isRevealed}
|
||||
onClick={onOpenPreview}
|
||||
type="button"
|
||||
>
|
||||
<img alt={`Media from ${item.sender}`} className={isRevealed ? 'media-image' : 'media-image is-blurred'} loading="lazy" src={item.urlPath} />
|
||||
</button>
|
||||
{!isRevealed ? <span className="privacy-label">Private media hidden</span> : null}
|
||||
</div>
|
||||
<div className="media-card-body">
|
||||
|
||||
Reference in new issue
Block a user