diff --git a/app/javascript/mastodon/components/status/attachments.module.scss b/app/javascript/mastodon/components/status/attachments.module.scss index d494b0e74b8..781b8da49d9 100644 --- a/app/javascript/mastodon/components/status/attachments.module.scss +++ b/app/javascript/mastodon/components/status/attachments.module.scss @@ -25,19 +25,9 @@ } .gallerySpoilerWrapper { - display: flex; - justify-content: space-between; - align-items: center; margin-bottom: var(--space-2); } -.gallerySpoilerContent { - @include mixins.type-body-strong; - - font-style: italic; - flex-grow: 1; -} - .galleryHideButtons { :global(.media-gallery__item__badges), :global(.media-gallery__actions) { diff --git a/app/javascript/mastodon/components/status/attachments.tsx b/app/javascript/mastodon/components/status/attachments.tsx index bf324456423..841546da7c5 100644 --- a/app/javascript/mastodon/components/status/attachments.tsx +++ b/app/javascript/mastodon/components/status/attachments.tsx @@ -4,6 +4,8 @@ import { FormattedMessage } from 'react-intl'; import classNames from 'classnames'; +import { WarningIcon } from '@phosphor-icons/react'; + import { openModal } from '@/mastodon/actions/modal'; import type { DeployPictureInPictureCallback } from '@/mastodon/actions/picture_in_picture'; import { deployPictureInPicture } from '@/mastodon/actions/picture_in_picture'; @@ -27,6 +29,7 @@ import { decodeIDNA } from '@/mastodon/utils/links'; import { Avatar } from '../avatar'; import { Button } from '../button/redesign'; +import { Callout } from '../callout/redesign'; import { Card, CardActions, CardBody, CardTitle } from '../card'; import { DisplayName } from '../display_name'; import { RelativeTimestamp } from '../relative_timestamp'; @@ -345,10 +348,12 @@ const MediaAttachmentWrapper: React.FC<{ return (
{showSpoiler && ( -
- {message} - -
+ ) + } + > + {message} + )}
diff --git a/app/javascript/mastodon/components/status/status.tsx b/app/javascript/mastodon/components/status/status.tsx index 38c3fa78e45..311e27597bb 100644 --- a/app/javascript/mastodon/components/status/status.tsx +++ b/app/javascript/mastodon/components/status/status.tsx @@ -188,7 +188,8 @@ export const StatusRedesign: React.FC = ({
= ({ hidden, onToggle, children, wrapperId }) => { return ( -
-
{children}
- - -
+ ) + } + > + {children} + ); }; diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index 9dc24599273..14d45d4babd 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -684,11 +684,12 @@ "confirmations.withdraw_request.confirm": "Withdraw request", "confirmations.withdraw_request.title": "Withdraw request to follow {name}?", "content_warning.hide": "Hide post", - "content_warning.hide_short": "Hide", + "content_warning.hide_post": "Hide post", "content_warning.media.hide_short": "Hide media", "content_warning.media.show_short": "Show media", "content_warning.show": "Show anyway", "content_warning.show_more": "Show more", + "content_warning.show_post": "Show post", "content_warning.show_short": "Show", "conversation.delete": "Delete conversation", "conversation.mark_as_read": "Mark as read",