mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
refactor: ♻️ reorganize note menu
translate just above view remote
This commit is contained in:
parent
8b957e9865
commit
e5bcb2e2c7
1 changed files with 7 additions and 7 deletions
|
@ -268,13 +268,6 @@ export function getNoteMenu(props: {
|
|||
null,
|
||||
]
|
||||
: []),
|
||||
instance.translatorAvailable
|
||||
? {
|
||||
icon: "ph-translate ph-bold ph-lg",
|
||||
text: i18n.ts.translate,
|
||||
action: translate,
|
||||
}
|
||||
: undefined,
|
||||
statePromise.then((state) =>
|
||||
state?.isFavorited
|
||||
? {
|
||||
|
@ -334,6 +327,13 @@ export function getNoteMenu(props: {
|
|||
action: () => togglePin(true),
|
||||
}
|
||||
: undefined,
|
||||
instance.translatorAvailable
|
||||
? {
|
||||
icon: "ph-translate ph-bold ph-lg",
|
||||
text: i18n.ts.translate,
|
||||
action: translate,
|
||||
}
|
||||
: undefined,
|
||||
appearNote.url || appearNote.uri
|
||||
? {
|
||||
icon: "ph-arrow-square-out ph-bold ph-lg",
|
||||
|
|
Loading…
Add table
Reference in a new issue