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:
parent
c2bfa111ac
commit
a9920d9630
6 changed files with 44 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue