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 (