diff --git a/src/components/failed-publish-notice.tsx b/src/components/failed-publish-notice.tsx index 3eaa95c7..0299d586 100644 --- a/src/components/failed-publish-notice.tsx +++ b/src/components/failed-publish-notice.tsx @@ -1,5 +1,4 @@ import styles from '../views/post/post.module.css'; -import useIsMobile from '../hooks/use-is-mobile'; interface FailedPublishNoticeProps { isDeleting: boolean; @@ -9,33 +8,30 @@ interface FailedPublishNoticeProps { } const FailedPublishNotice = ({ isDeleting, isRetrying = false, onDelete, onRetry }: FailedPublishNoticeProps) => { - const isMobile = useIsMobile(); const isBusy = isDeleting || isRetrying; return ( - This post failed to publish, it's not visible to other users.{' '} - {isMobile && ( - <> -
-
- - )} - {onRetry && ( + This post failed to publish, it's not visible to other users. + + {onRetry && ( + <> + + [ + + ] + {' '} + + )} [ - ] - )}{' '} - - [ - - ] ); diff --git a/src/views/post/post.module.css b/src/views/post/post.module.css index 75aada2a..85599226 100644 --- a/src/views/post/post.module.css +++ b/src/views/post/post.module.css @@ -671,8 +671,14 @@ font-weight: 700; } +.failedPublishActions { + display: block; + margin-top: 5px; +} + .failedDeletePostAction { font-weight: 400; + white-space: nowrap; } .failedDeletePostBracket {