enhance(frontend): ノート内のカスタム絵文字をクリックすることで、コピーおよびリアクションができるように
This commit is contained in:
parent
ca1cda0db0
commit
5e9f6a90df
18 changed files with 82 additions and 21 deletions
|
|
@ -33,12 +33,13 @@ type MfmProps = {
|
|||
plain?: boolean;
|
||||
nowrap?: boolean;
|
||||
author?: Misskey.entities.UserLite;
|
||||
i?: Misskey.entities.UserLite | null;
|
||||
isNote?: boolean;
|
||||
emojiUrls?: string[];
|
||||
rootScale?: number;
|
||||
nyaize: boolean | 'account';
|
||||
parsedNodes?: mfm.MfmNode[] | null;
|
||||
enableEmojiMenu?: boolean;
|
||||
enableEmojiMenuReaction?: boolean;
|
||||
};
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
|
|
@ -328,6 +329,8 @@ export default function(props: MfmProps) {
|
|||
normal: props.plain,
|
||||
host: null,
|
||||
useOriginalSize: scale >= 2.5,
|
||||
menu: props.enableEmojiMenu,
|
||||
menuReaction: props.enableEmojiMenuReaction,
|
||||
})];
|
||||
} else {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue