Add translate link to post menu (#261)

* Add a google translate menu item to posts

* Fix: make sure the dropdown menu is always visible (when low on the screen)
This commit is contained in:
Paul Frazee 2023-03-03 15:13:31 -06:00 committed by GitHub
parent c2bfa111ac
commit a9920d9630
6 changed files with 44 additions and 3 deletions

View file

@ -52,6 +52,7 @@ interface PostCtrlsOpts {
onPressToggleRepost: () => Promise<void>
onPressToggleUpvote: () => Promise<void>
onCopyPostText: () => void
onOpenTranslate: () => void
onDeletePost: () => void
}
@ -297,6 +298,7 @@ export function PostCtrls(opts: PostCtrlsOpts) {
itemTitle={opts.itemTitle}
isAuthor={opts.isAuthor}
onCopyPostText={opts.onCopyPostText}
onOpenTranslate={opts.onOpenTranslate}
onDeletePost={opts.onDeletePost}>
<FontAwesomeIcon
icon="ellipsis-h"