Skip to content

Commit

Permalink
fix: move new attachments to top of the action buttons on composer
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Mar 8, 2024
1 parent 686239e commit 54a73c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion apps/web/src/components/Composer/NewAttachments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ const NewAttachments: FC<NewAttachmentsProps> = ({
const attachmentsLength = slicedAttachments?.length;

return attachmentsLength !== 0 ? (
<div className={cn(getClass(attachmentsLength)?.row, 'mt-3 grid gap-2')}>
<div
className={cn(getClass(attachmentsLength)?.row, 'mt-3 grid gap-2', 'p-5')}
>
{slicedAttachments?.map((attachment: NewAttachment, index: number) => {
const isImage = attachment.type === 'Image';
const isAudio = attachment.type === 'Audio';
Expand Down
4 changes: 1 addition & 3 deletions apps/web/src/components/Composer/NewPublication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ const NewPublication: FC<NewPublicationProps> = ({ publication }) => {
</Wrapper>
) : null}
<LinkPreviews />
<NewAttachments attachments={attachments} />
<div className="divider mx-5" />
<div className="block items-center px-5 py-3 sm:flex">
<div className="flex items-center space-x-4">
Expand Down Expand Up @@ -642,9 +643,6 @@ const NewPublication: FC<NewPublicationProps> = ({ publication }) => {
</Button>
</div>
</div>
<div className="px-5">
<NewAttachments attachments={attachments} />
</div>
<Discard onDiscard={onDiscardClick} />
</Card>
);
Expand Down

1 comment on commit 54a73c6

@vercel
Copy link

@vercel vercel bot commented on 54a73c6 Mar 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web – ./apps/web

hey.xyz
heyxyz.vercel.app
web-heyxyz.vercel.app
web-git-main-heyxyz.vercel.app

Please sign in to comment.