diff --git a/src/actions/compose.ts b/src/actions/compose.ts index 00a52d017..94e7d30c0 100644 --- a/src/actions/compose.ts +++ b/src/actions/compose.ts @@ -150,7 +150,9 @@ interface ComposeReplyAction { const replyCompose = (status: Status) => (dispatch: AppDispatch, getState: () => RootState) => { - if (!isUserTouching()) return window.open(`/compose?in_reply_to=${status.id}`, '_blank'); + if (!isUserTouching()) { + return window.open(`/compose?in_reply_to=${status.id}`, 'targetWindow', 'height=500,width=700'); + } const state = getState(); const instance = state.instance; const { explicitAddressing } = getFeatures(instance); @@ -187,7 +189,9 @@ interface ComposeQuoteAction { const quoteCompose = (status: Status) => (dispatch: AppDispatch, getState: () => RootState) => { - if (!isUserTouching()) return window.open(`/compose?quote=${status.id}`, '_blank'); + if (!isUserTouching()) { + return window.open(`/compose?quote=${status.id}`, 'targetWindow', 'height=500,width=700'); + } const state = getState(); const instance = state.instance; const { explicitAddressing } = getFeatures(instance); diff --git a/src/components/scroll-top-button.tsx b/src/components/scroll-top-button.tsx index 58d356c2a..224921725 100644 --- a/src/components/scroll-top-button.tsx +++ b/src/components/scroll-top-button.tsx @@ -86,7 +86,7 @@ const ScrollTopButton: React.FC = ({ } return ( -
+