kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
hide-status-actions
rodzic
a1b063fb55
commit
8c6ab1b109
|
@ -109,6 +109,7 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
|
|||
const account = useOwnAccount();
|
||||
const isStaff = account ? account.staff : false;
|
||||
const isAdmin = account ? account.admin : false;
|
||||
const isUnderReview = status.visibility === 'self';
|
||||
|
||||
if (!status) {
|
||||
return null;
|
||||
|
@ -279,12 +280,12 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
|
|||
};
|
||||
|
||||
const handleCopy: React.EventHandler<React.MouseEvent> = (e) => {
|
||||
const { uri } = status;
|
||||
const { uri } = status;
|
||||
const textarea = document.createElement('textarea');
|
||||
|
||||
e.stopPropagation();
|
||||
|
||||
textarea.textContent = uri;
|
||||
textarea.textContent = uri;
|
||||
textarea.style.position = 'fixed';
|
||||
|
||||
document.body.appendChild(textarea);
|
||||
|
|
|
@ -300,7 +300,7 @@ const Status: React.FC<IStatus> = (props) => {
|
|||
|
||||
const accountAction = props.accountAction || reblogElement;
|
||||
|
||||
const inReview = status.visibility === 'self';
|
||||
const isUnderReview = status.visibility === 'self';
|
||||
const isSensitive = status.sensitive;
|
||||
|
||||
return (
|
||||
|
@ -356,11 +356,11 @@ const Status: React.FC<IStatus> = (props) => {
|
|||
<Stack
|
||||
className={
|
||||
classNames('relative', {
|
||||
'min-h-[220px]': inReview || isSensitive,
|
||||
'min-h-[220px]': isUnderReview || isSensitive,
|
||||
})
|
||||
}
|
||||
>
|
||||
{(inReview || isSensitive) ? (
|
||||
{(isUnderReview || isSensitive) ? (
|
||||
<SensitiveContentOverlay
|
||||
status={status}
|
||||
visible={showMedia}
|
||||
|
|
Ładowanie…
Reference in New Issue